removed docker login
This commit is contained in:
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
@@ -147,39 +147,19 @@ jobs:
|
|||||||
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
|
||||||
|
Reference in New Issue
Block a user