removed docker login

This commit is contained in:
2025-08-02 21:30:30 +02:00
parent 9ec5c8e1e4
commit 7afcf6abd2

View File

@@ -146,40 +146,20 @@ jobs:
ls -la linux-bin/ ls -la linux-bin/
echo "Windows binary:" echo "Windows binary:"
ls -la windows-bin/ ls -la windows-bin/
- name: Log in to private registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Linux Docker image - name: Build Linux Docker image
if: ${{ always() && steps.download-linux.outcome == 'success' }} if: ${{ always() && steps.download-linux.outcome == 'success' }}
uses: docker/build-push-action@v4 run: |
with: docker build -f Dockerfile.linux -t ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} .
context: . docker tag ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}
file: Dockerfile.linux docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}
platforms: linux/amd64
push: false
tags: ${{ env.DOCKER_IMAGE_NAME }}:linux-latest
build-args: |
BINARY_PATH=linux-bin/${{ needs.detect-project.outputs.project-name }}
- name: Build Windows Docker image - name: Build Windows Docker image
if: ${{ always() && steps.download-windows.outcome == 'success' }} if: ${{ always() && steps.download-windows.outcome == 'success' }}
uses: docker/build-push-action@v4 run: |
with: docker build -f Dockerfile.windows -t ${{ env.IMAGE_NAME }}:windows-${{ env.TAG }} .
context: . docker tag ${{ env.IMAGE_NAME }}:windows-${{ env.TAG }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:windows-${{ env.TAG }}
file: Dockerfile.windows docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:windows-${{ env.TAG }}
platforms: windows-amd64
push: false
tags: ${{ env.DOCKER_IMAGE_NAME }}:windows-latest
build-args: |
BINARY_PATH=windows-bin/${{ needs.detect-project.outputs.project-name }}.exe
cleanup: cleanup:
name: Cleanup name: Cleanup