Add missing REPRO build arguments in the CI publish step

The publish CI step was mistankely omitted from https://gitlab.archlinux.org/archlinux/archlinux-docker/-/merge_requests/96
This commit is contained in:
Robin Candau 2026-04-19 20:48:45 +02:00
parent 09a5aed161
commit 152c2410be
No known key found for this signature in database
GPG Key ID: FDC3040B92ACA748

View File

@ -221,9 +221,18 @@ image:publish:secure:
- podman login -u "$GHCR_USERNAME" -p "$GHCR_PASSWORD" "ghcr.io"
- 'echo -e "default-docker:\n use-sigstore-attachments: true" > /etc/containers/registries.d/sigstore.yaml'
script:
- podman build
-f "$CI_PROJECT_DIR/Dockerfile.$GROUP"
-t "archlinux:$GROUP-$BUILD_VERSION"
- |
if [[ "$GROUP" == "repro" ]]; then
SOURCE_DATE_EPOCH=$(date -u -d "today 00:00:00" +%s)
REPRO_ARGS=(
--source-date-epoch=${SOURCE_DATE_EPOCH}
--rewrite-timestamp
)
fi
podman build \
"${REPRO_ARGS[@]}" \
-f "$CI_PROJECT_DIR/Dockerfile.$GROUP" \
-t "archlinux:$GROUP-$BUILD_VERSION" \
"$CI_PROJECT_DIR"
- |
for host in "docker.io" "quay.io" "ghcr.io"; do