From 0aab3f570c77e20c7936321d7095076d853744c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20St=C3=A4bler?= Date: Wed, 28 Jan 2026 08:57:25 +0100 Subject: [PATCH 1/2] Switch to nightly builds for main branch --- .github/workflows/multiarch-build-and-push.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/multiarch-build-and-push.yml b/.github/workflows/multiarch-build-and-push.yml index 66a1807..26e6c24 100644 --- a/.github/workflows/multiarch-build-and-push.yml +++ b/.github/workflows/multiarch-build-and-push.yml @@ -1,9 +1,8 @@ name: Build and Push Image on: - push: - branches: - - main + schedule: + - cron: '0 0 * * *' # Runs at 00:00 UTC every day env: REGISTRY: ghcr.io From c0bef386160a0b141dbe31933f8413fba57c152e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20St=C3=A4bler?= Date: Wed, 28 Jan 2026 08:57:53 +0100 Subject: [PATCH 2/2] Use revision and creation timestamp as a label instead a tag --- .github/workflows/multiarch-build-and-push.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/multiarch-build-and-push.yml b/.github/workflows/multiarch-build-and-push.yml index 26e6c24..34b691c 100644 --- a/.github/workflows/multiarch-build-and-push.yml +++ b/.github/workflows/multiarch-build-and-push.yml @@ -48,11 +48,9 @@ jobs: run: | GIT_SHA=$(git rev-parse --short HEAD) BUILD_TIMESTAMP=$(date +"%Y%m%d%H%M%S") - VERSION_TAG="${GIT_SHA}-${BUILD_TIMESTAMP}" echo "git_sha=${GIT_SHA}" >> $GITHUB_OUTPUT echo "build_timestamp=${BUILD_TIMESTAMP}" >> $GITHUB_OUTPUT - echo "version_tag=${VERSION_TAG}" >> $GITHUB_OUTPUT - name: Build and push image uses: docker/build-push-action@v6 @@ -61,6 +59,7 @@ jobs: target: prod platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le push: true - tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version_tag }} + tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main + labels: | + org.opencontainers.image.revision=${{ steps.meta.outputs.git_sha }} + org.opencontainers.image.created=${{ steps.meta.outputs.build_timestamp }}