Skip to content

Commit 4a651ae

Browse files
committed
build-sys: Move build back to being the default target
Oops. Signed-off-by: Colin Walters <walters@verbum.org>
1 parent 382e1ef commit 4a651ae

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Justfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ buildargs := base_buildargs + " --secret=id=secureboot_key,src=target/test-secur
4747
# Args for build-sealed (no base arg, it sets that itself)
4848
sealed_buildargs := "--build-arg=variant=" + variant + " --secret=id=secureboot_key,src=target/test-secureboot/db.key --secret=id=secureboot_cert,src=target/test-secureboot/db.crt"
4949

50+
# The default target: build the container image from current sources.
51+
# Note commonly you might want to override the base image via e.g.
52+
# `just build --build-arg=base=quay.io/fedora/fedora-bootc:42`
53+
#
54+
# This first builds RPMs via the `package` target, then injects them
55+
# into the container image.
56+
build: package _keygen
57+
@just _build-from-package target/packages
58+
5059
# Compute SOURCE_DATE_EPOCH and VERSION from git for reproducible builds.
5160
# Outputs shell variable assignments that can be eval'd.
5261
_git-build-vars:
@@ -66,15 +75,6 @@ _git-build-vars:
6675
echo "SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}"
6776
echo "VERSION=${VERSION}"
6877

69-
# The default target: build the container image from current sources.
70-
# Note commonly you might want to override the base image via e.g.
71-
# `just build --build-arg=base=quay.io/fedora/fedora-bootc:42`
72-
#
73-
# This first builds RPMs via the `package` target, then injects them
74-
# into the container image.
75-
build: package _keygen
76-
@just _build-from-package target/packages
77-
7878
# Generate Secure Boot keys (only for our own CI/testing)
7979
_keygen:
8080
./hack/generate-secureboot-keys

0 commit comments

Comments
 (0)