removed windows from docker builds
This commit is contained in:
39
.github/workflows/build.yml
vendored
39
.github/workflows/build.yml
vendored
@@ -149,9 +149,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Linux build using Docker Buildx
|
- name: Linux build using Docker Buildx
|
||||||
run: |
|
run: |
|
||||||
docker buildx create --use --buildkitd-flags '--allow-insecure-entitlement network.host'
|
docker buildx create --use
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--allow network.host \
|
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
-f Dockerfile.linux \
|
-f Dockerfile.linux \
|
||||||
--build-arg BINARY_NAME=${{ needs.detect-project.outputs.project-name }} \
|
--build-arg BINARY_NAME=${{ needs.detect-project.outputs.project-name }} \
|
||||||
@@ -166,42 +165,6 @@ jobs:
|
|||||||
echo "Pushing Linux Docker image to registry: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}"
|
echo "Pushing Linux Docker image to registry: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}"
|
||||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}
|
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}
|
||||||
|
|
||||||
windows-docker-build:
|
|
||||||
name: Build Windows Docker Image
|
|
||||||
needs: [windows-cross]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Download Windows artifact
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: windows-binary
|
|
||||||
path: windows-bin
|
|
||||||
|
|
||||||
- name: Verify artifacts
|
|
||||||
run: |
|
|
||||||
echo "Windows binary:"
|
|
||||||
ls -la windows-bin/
|
|
||||||
|
|
||||||
- name: Login to Docker Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Windows build using Docker Buildx
|
|
||||||
run: |
|
|
||||||
docker buildx create --use --buildkitd-flags '--allow-insecure-entitlement network.host'
|
|
||||||
docker buildx build \
|
|
||||||
--allow network.host \
|
|
||||||
--platform windows/amd64 \
|
|
||||||
-f Dockerfile.windows \
|
|
||||||
--build-arg BINARY_NAME=${{ needs.detect-project.outputs.project-name }} \
|
|
||||||
--push \
|
|
||||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:windows-${{ env.TAG }} .
|
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
name: Cleanup
|
name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
|
Reference in New Issue
Block a user