File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : 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.
66on :
77 push :
88 tags :
99 - ' v*'
10- branches :
11- - main
1210
1311permissions :
1412 contents : read
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}"
You can’t perform that action at this time.
0 commit comments