building tagging and pushing in one go
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -197,16 +197,8 @@ jobs:
|
||||
--platform windows/amd64 \
|
||||
-f Dockerfile.windows \
|
||||
--build-arg BINARY_NAME=${{ needs.detect-project.outputs.project-name }} \
|
||||
--load \
|
||||
-t ${{ env.IMAGE_NAME }}:windows-${{ env.TAG }} .
|
||||
|
||||
- name: Tag and Push Windows Docker image
|
||||
if: ${{ success() }}
|
||||
run: |
|
||||
echo "Tagging Windows Docker image"
|
||||
docker tag ${{ env.IMAGE_NAME }}:windows-${{ env.TAG }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:windows-${{ env.TAG }}
|
||||
echo "Pushing Windows Docker image to registry: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:windows-${{ env.TAG }}"
|
||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:windows-${{ env.TAG }}
|
||||
--push \
|
||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:windows-${{ env.TAG }} .
|
||||
|
||||
cleanup:
|
||||
name: Cleanup
|
||||
|
Reference in New Issue
Block a user