File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3333 # Build Docker Image
3434 - name : Build Docker Image
3535 run : |
36- docker build -t ghcr.io/${{ env.IMAGE_NAME }}:${{ github.sha }} .
36+ docker build -t ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }} .
37+ docker tag ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }} ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
38+
3739
3840
3941 - name : Wait for Docker container to be ready
4547 # Push the Docker image to the registry
4648 - name : Push Docker Image to GHCR
4749 run : |
48- docker push ghcr.io/${{ env.IMAGE_NAME }}
49-
50+ docker push ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}
51+ docker push ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
You can’t perform that action at this time.
0 commit comments