File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,12 @@ jobs:
6161 docker-archive:./result \
6262 docker://ghcr.io/${REPO_OWNER}/cardano-db-sync:$IMAGE_TAG
6363
64- # Also tag it as latest
65- skopeo copy \
66- docker-archive:./result \
67- docker://ghcr.io/${REPO_OWNER}/cardano-db-sync:latest
64+ # If it's a tag build, also tag it as latest
65+ if [[ "$GITHUB_REF_TYPE" = "tag" ]]; then
66+ skopeo copy \
67+ docker-archive:./result \
68+ docker://ghcr.io/${REPO_OWNER}/cardano-db-sync:latest
69+ fi
6870
6971 - name : Upload ${{ github.actor }}/cardano-smash-server
7072 run : |
7678 docker-archive:./result \
7779 docker://ghcr.io/${REPO_OWNER}/cardano-smash-server:$IMAGE_TAG
7880
79- # Also tag it as latest
80- skopeo copy \
81- docker-archive:./result \
82- docker://ghcr.io/${REPO_OWNER}/cardano-smash-server:latest
81+ # If it's a tag build, also tag it as latest
82+ if [[ "$GITHUB_REF_TYPE" = "tag" ]]; then
83+ skopeo copy \
84+ docker-archive:./result \
85+ docker://ghcr.io/${REPO_OWNER}/cardano-smash-server:latest
86+ fi
You can’t perform that action at this time.
0 commit comments