From 40e1665c84222b8e17e9fe31a1aeaf7a41c7b983 Mon Sep 17 00:00:00 2001 From: Mangirdas Judeikis Date: Sat, 4 Jul 2026 11:00:15 +0300 Subject: [PATCH] drop latest tag Signed-off-by: Mangirdas Judeikis --- .github/workflows/image.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/image.yaml b/.github/workflows/image.yaml index 831122cbd..7388cb035 100644 --- a/.github/workflows/image.yaml +++ b/.github/workflows/image.yaml @@ -1,14 +1,12 @@ name: Image -# Build and push the konnector image. Pushes on: -# - tags v* -> ghcr.io//konnector:, :latest, : -# - branch main -> ghcr.io//konnector:latest, : +# Build and push the konnector image. Pushes only on tags: +# - tags v* -> ghcr.io//konnector: +# No :latest or : tags — the image repo is shared with v1/main images. on: push: tags: - 'v*' - branches: - - main permissions: contents: read @@ -25,10 +23,7 @@ jobs: run: | owner="$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')" image="ghcr.io/${owner}/konnector" - tags="${image}:latest ${image}:${{ github.sha }}" - if [[ "${{ github.ref_type }}" == "tag" ]]; then - tags="${image}:${GITHUB_REF_NAME} ${tags}" - fi + tags="${image}:${GITHUB_REF_NAME}" { echo "image=${image}" echo "tags=${tags}"