File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,23 @@ jobs:
47
47
48
48
- name : Upload to ghcr.io
49
49
run : |
50
+ # Downcase the package repository, because docker reference
51
+ # are required to be lower case
52
+ REPO_OWNER="$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')"
53
+ IMAGE_REF="ghcr.io/$REPO_OWNER/cardano-db-sync"
54
+ IMAGE_TAG="$GITHUB_REF_NAME"
55
+
56
+ # Load the image from the nix build result
50
57
docker load < result
58
+
59
+ # Tag the image
51
60
docker image tag \
52
61
cardano-db-sync:latest \
53
- ghcr.io/${{ github.repository_owner }}/cardano-db-sync:$GITHUB_REF_NAME
62
+ "${IMAGE_REF}:${IMAGE_TAG}"
63
+ # Also tag it as latest
54
64
docker image tag \
55
65
cardano-db-sync:latest \
56
- ghcr.io/${{ github.repository_owner }}/cardano-db-sync:latest
57
- docker push ghcr.io/${{ github.repository_owner }}/cardano-db-sync:$GITHUB_REF_NAME
58
- docker push ghcr.io/${{ github.repository_owner }}/cardano-db-sync:latest
66
+ "${IMAGE_REF}:latest"
67
+ # Push the tags above
68
+ docker push "${IMAGE_REF}:${IMAGE_TAG}"
69
+ docker push "${IMAGE_REF}:latest"
You can’t perform that action at this time.
0 commit comments