Skip to content

Commit 40e1665

Browse files
committed
drop latest tag
Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt>
1 parent b62c379 commit 40e1665

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/image.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
name: Image
22

3-
# Build and push the konnector image. Pushes on:
4-
# - tags v* -> ghcr.io/<owner>/konnector:<version>, :latest, :<sha>
5-
# - branch main -> ghcr.io/<owner>/konnector:latest, :<sha>
3+
# Build and push the konnector image. Pushes only on tags:
4+
# - tags v* -> ghcr.io/<owner>/konnector:<version>
5+
# No :latest or :<sha> tags — the image repo is shared with v1/main images.
66
on:
77
push:
88
tags:
99
- 'v*'
10-
branches:
11-
- main
1210

1311
permissions:
1412
contents: read
@@ -25,10 +23,7 @@ jobs:
2523
run: |
2624
owner="$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')"
2725
image="ghcr.io/${owner}/konnector"
28-
tags="${image}:latest ${image}:${{ github.sha }}"
29-
if [[ "${{ github.ref_type }}" == "tag" ]]; then
30-
tags="${image}:${GITHUB_REF_NAME} ${tags}"
31-
fi
26+
tags="${image}:${GITHUB_REF_NAME}"
3227
{
3328
echo "image=${image}"
3429
echo "tags=${tags}"

0 commit comments

Comments
 (0)