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:
61
61
docker-archive:./result \
62
62
docker://ghcr.io/${REPO_OWNER}/cardano-db-sync:$IMAGE_TAG
63
63
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
68
70
69
71
- name : Upload ${{ github.actor }}/cardano-smash-server
70
72
run : |
76
78
docker-archive:./result \
77
79
docker://ghcr.io/${REPO_OWNER}/cardano-smash-server:$IMAGE_TAG
78
80
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