[PATCH] ci: Fix pushing of latest container tag

1 view
Skip to first unread message

Jan Kiszka

unread,
Jan 28, 2026, 2:20:07 AM (13 days ago) Jan 28
to kas-devel, Jörg Sommer, Felix Moessbauer
From: Jan Kiszka <jan.k...@siemens.com>

When pushing a release, we no longer update the latest tag of the
container because the release workflow stepped back from that while the
master workflow was not updated accordingly

Fixes: 3b6461b32c81 ("ci: tag builds must not tag containers with latest")
Reported-by: Jörg Sommer <joerg....@navimatix.de>
Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---
.github/workflows/master.yml | 11 -----------
1 file changed, 11 deletions(-)

diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index 5db1d11..eabc559 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -23,17 +23,8 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- - name: Identify release build
- run: |
- # The release workflow will push :latest for tagged revisions
- if git describe --exact-match --tags --match '*.*'; then
- echo "PUSH_MASTER=false" >> $GITHUB_ENV
- else
- echo "PUSH_MASTER=true" >> $GITHUB_ENV
- fi
- name: Set up docker build
uses: ./.github/actions/docker-init
- if: ${{ env.PUSH_MASTER == 'true' }}
with:
deploy-user: ${{ github.actor }}
deploy-token: ${{ secrets.GITHUB_TOKEN }}
@@ -41,7 +32,6 @@ jobs:
distro-release: ${{ matrix.distro-release }}
- name: Build ${{ matrix.image-name }} image
uses: docker/build-push-action@v6
- if: ${{ env.PUSH_MASTER == 'true' }}
id: push
with:
context: /home/runner/kas-clone
@@ -58,7 +48,6 @@ jobs:
annotations: ${{ env.DOCKER_METADATA_OUTPUT_ANNOTATIONS }}
- name: Attest ${{ matrix.image-name }} image
uses: actions/attest-build-provenance@v1
- if: ${{ env.PUSH_MASTER == 'true' }}
with:
subject-name: ghcr.io/${{ github.repository }}/${{ matrix.image-name }}
subject-digest: ${{ steps.push.outputs.digest }}
--
2.51.0
Reply all
Reply to author
Forward
0 new messages