Use docker driver for buildx to inherit host network/hosts
This commit is contained in:
@@ -97,10 +97,13 @@ jobs:
|
|||||||
http = true
|
http = true
|
||||||
insecure = true
|
insecure = true
|
||||||
EOF
|
EOF
|
||||||
|
# Add hosts entry for git.uncloud.vpn token endpoint resolution
|
||||||
|
echo "10.100.0.2 git.uncloud.vpn" >> /etc/hosts
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
|
driver: docker
|
||||||
driver-opts: |
|
driver-opts: |
|
||||||
network=host
|
network=host
|
||||||
config: /tmp/buildkit/buildkitd.toml
|
config: /tmp/buildkit/buildkitd.toml
|
||||||
|
|||||||
Reference in New Issue
Block a user