From aa78d463ca0ba3a17da2eb54d0cec983772c186a Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Mon, 20 Apr 2026 11:23:10 +0200 Subject: [PATCH] Add the missing 'source_date_epoch' argument to the make-dockerfile.sh script call in the pre-release CI stage Since https://gitlab.archlinux.org/archlinux/archlinux-docker/-/merge_requests/96, the make-dockerfile.sh script expects the new SOURCE_DATE_EPOCH variable / argument which was mistankely omitted in the pre-release CI stage call to the script. --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0c771b6..f8b5866 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -310,6 +310,7 @@ pre-release: - apk add jq curl bash script: - | + source_date_epoch=$(date -u -d "today 00:00:00" +%s) echo "Update the description of our daily DockerHub repository at https://hub.docker.com/r/archlinux/archlinux" TOKEN="$(curl -X POST https://hub.docker.com/v2/users/login -H "Content-Type: application/json" -d "{\"username\": \"${DOCKERHUB_USERNAME}\", \"password\": \"${DOCKERHUB_PASSWORD}\"}" | jq -er .token)" curl -X PATCH https://hub.docker.com/v2/repositories/archlinux/archlinux/ \ @@ -332,7 +333,7 @@ pre-release: # Create the Dockerfiles, commit to the release branch for group in base base-devel multilib-devel repro; do rootfs_file="${group}-${BUILD_VERSION}.tar.zst" - ./scripts/make-dockerfile.sh "${rootfs_file}" "${group}" "output" "curl -sOJL \"${PACKAGE_REGISTRY_URL}/${rootfs_file}\"" "${group}" + ./scripts/make-dockerfile.sh "${rootfs_file}" "${group}" "output" "curl -sOJL \"${PACKAGE_REGISTRY_URL}/${rootfs_file}\"" "${group}" "${source_date_epoch}" sed -i "/^COPY ${rootfs_file} \/$/d" output/Dockerfile.${group} done # See README.md###Maintenance for notes about `GITLAB_PROJECT_TOKEN`