summaryrefslogtreecommitdiff
path: root/Justfile
diff options
context:
space:
mode:
Diffstat (limited to 'Justfile')
-rw-r--r--Justfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Justfile b/Justfile
index 96b988f..9a9c75a 100644
--- a/Justfile
+++ b/Justfile
@@ -168,7 +168,9 @@ build $target_image=image_name $tag=default_tag:
LABELS+=("--label" "org.opencontainers.image.vendor={{ repo_organization }}")
# This actually builds the image!
- PODMAN_BUILD_ARGS=("${BUILD_CHANNEL_ARGS[@]}" "${BUILD_ARGS[@]}" "${LABELS[@]}" --pull=newer --tag "${target_image}:${tag}" --file Containerfile)
+ # The build always exposes a secret mount. Local builds use /dev/null;
+ # CI supplies a short-lived GitHub token file for private release assets.
+ PODMAN_BUILD_ARGS=("${BUILD_CHANNEL_ARGS[@]}" "${BUILD_ARGS[@]}" "${LABELS[@]}" --secret "id=GITHUB_TOKEN,src=${GITHUB_TOKEN_FILE:-/dev/null}" --pull=newer --tag "${target_image}:${tag}" --file Containerfile)
podman build "${PODMAN_BUILD_ARGS[@]}" .