added --load flag for local access of image
This commit is contained in:
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -156,6 +156,7 @@ jobs:
|
||||
--platform linux/amd64 \
|
||||
-f Dockerfile.linux \
|
||||
--build-arg BINARY_NAME=${{ needs.detect-project.outputs.project-name }} \
|
||||
--load \
|
||||
-t ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} .
|
||||
|
||||
- name: Login to Docker Registry
|
||||
@@ -178,7 +179,7 @@ jobs:
|
||||
run: |
|
||||
echo "Building Windows Docker-Image with env-Tag: ${{env.TAG }}"
|
||||
docker build -f Dockerfile.windows -t ${{ env.IMAGE_NAME }}:windows-${{ env.TAG }} .
|
||||
echo docker login git.triggermeelmo.com -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||
echo docker login ${{ env.REGISTRY }} -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||
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 }}"
|
||||
|
Reference in New Issue
Block a user