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}"