File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -156,17 +156,17 @@ jobs:
156156 - name : Checkout
157157 uses : actions/checkout@v2
158158
159- - name : Build image
160- run : docker build -t ghcr.io/${{ github.repository }} .
161- env :
162- DOCKER_BUILDKIT : ' 1'
163-
164159 - name : Log in to GitHub Container Registry
165160 uses : docker/login-action@v1
166161 with :
167162 registry : ghcr.io
168163 username : ${{ github.actor }}
169164 password : ${{ secrets.GITHUB_TOKEN }}
170165
171- - name : Push image to GHCR
172- run : docker push ghcr.io/${{ github.repository }}
166+ - name : Build and Push Docker Image
167+ uses : docker/build-push-action@v2
168+ with :
169+ push : true
170+ tags : |
171+ ghcr.io/${{ github.repository }}:${{ steps.get_tag_version.outputs.TAG_VERSION }}
172+ ghcr.io/${{ github.repository }}:latest
You can’t perform that action at this time.
0 commit comments