File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 4242 # Build and tag Docker Image
4343 - name : Build Docker Image
4444 run : |
45- docker build -t ${{ env.IMAGE_NAME }}/${{ steps.meta.outputs.tags }} .
46- docker tag ${{ env.IMAGE_NAME }}/${{ steps.meta.outputs.tags }}:testing
45+ docker build -t ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }} .
46+
47+ - name : Tag Docker Image
48+ run : |
49+ docker tag ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }} ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
50+ docker tag ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }} ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:testing
4751
4852 - name : Wait for Docker container to be ready
4953 run : sleep 30
5458 # Push the Docker image to the registry
5559 - name : Push Docker Image to GHCR
5660 run : |
57- docker push ghcr.io/${{ steps.meta.outputs.tags }}
61+ docker push ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
62+ docker push ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
5863 docker push ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:testing
You can’t perform that action at this time.
0 commit comments