-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
25 lines (18 loc) · 934 Bytes
/
Copy pathJustfile
File metadata and controls
25 lines (18 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set shell := ["bash", "-euo", "pipefail", "-c"]
export IMAGE_NAME := env("IMAGE_NAME", "akatsuki-linux")
export IMAGE_TAG := env("IMAGE_TAG", "dev")
export IMAGE_VERSION := env("IMAGE_VERSION", "dev")
default:
@just --list
# Os recipes abaixo são para execução manual pelo mantenedor.
static:
bash tests/static-checks.sh
build:
podman build --pull=always --no-cache --format oci --build-arg "VERSION={{ IMAGE_VERSION }}" --tag "localhost/{{ IMAGE_NAME }}:{{ IMAGE_TAG }}" .
lint-image:
podman run --rm --privileged "localhost/{{ IMAGE_NAME }}:{{ IMAGE_TAG }}" bootc container lint --fatal-warnings
image-invariants:
podman run --rm "localhost/{{ IMAGE_NAME }}:{{ IMAGE_TAG }}" /usr/libexec/akatsuki-image-invariants
# Requer root porque Titanoboa usa loop devices e monta a imagem EFI.
build-iso IMAGE_TAG="stable":
sudo env JUST_BIN="$(command -v just)" tools/build-local-iso-root "{{ IMAGE_TAG }}"