File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change 51
51
outputs :
52
52
major_tag : ${{ steps.update-major-tag.outputs.major-tag }}
53
53
steps :
54
- - name : Update the ${{ env.TAG_NAME }} tag
55
- id : update-major-tag
56
-
57
- with :
58
- source-tag : ${{ env.TAG_NAME }}
59
- slack-webhook : ${{ secrets.SLACK_WEBHOOK }}
54
+ - name : Update the ${{ env.TAG_NAME }} major tag
55
+ id : update-major-tag
56
+
57
+ with :
58
+ source-tag : ${{ env.TAG_NAME }}
59
+ slack-webhook : ${{ secrets.SLACK_WEBHOOK }}
60
+
61
+ # Login to the GHCR Docker registry
62
+ - name : Log into registry ${{ env.REGISTRY }}
63
+ uses : docker/login-action@v2
64
+ with :
65
+ registry : ${{ env.REGISTRY }}
66
+ username : ${{ github.actor }}
67
+ password : ${{ secrets.GITHUB_TOKEN }}
68
+
69
+ - name : Update Docker image tag
70
+ env :
71
+ NEW_TAG : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.update-major-tag.outputs.major-tag }}
72
+ SOURCE_TAG : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG_NAME }}
73
+ run : |
74
+ docker buildx imagetools create --tag $NEW_TAG $SOURCE_TAG
You can’t perform that action at this time.
0 commit comments