added insecure entitlement network.host
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -149,8 +149,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Linux build using Docker Buildx
|
- name: Linux build using Docker Buildx
|
||||||
run: |
|
run: |
|
||||||
docker buildx create --use
|
docker buildx create --use --buildkitd-flags '--allow-insecure-entitlement network.host'
|
||||||
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 }} \
|
||||||
@@ -192,8 +193,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Windows build using Docker Buildx
|
- name: Windows build using Docker Buildx
|
||||||
run: |
|
run: |
|
||||||
docker buildx create --use
|
docker buildx create --use --buildkitd-flags '--allow-insecure-entitlement network.host'
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
|
--allow network.host \
|
||||||
--platform windows/amd64 \
|
--platform windows/amd64 \
|
||||||
-f Dockerfile.windows \
|
-f Dockerfile.windows \
|
||||||
--build-arg BINARY_NAME=${{ needs.detect-project.outputs.project-name }} \
|
--build-arg BINARY_NAME=${{ needs.detect-project.outputs.project-name }} \
|
||||||
@@ -203,7 +205,7 @@ jobs:
|
|||||||
cleanup:
|
cleanup:
|
||||||
name: Cleanup
|
name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
needs: [docker-build, native-build, windows-cross]
|
needs: [docker-build, native-build, windows-cross, windows-docker-build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cleanup Docker images
|
- name: Cleanup Docker images
|
||||||
|
Reference in New Issue
Block a user