Skip to content

Commit f1e0e86

Browse files
committed
diag: buildkit network probe (temp)
1 parent ba5ab75 commit f1e0e86

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/diag-pbs2.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: diag-pbs2
2+
on:
3+
push:
4+
branches: [diag/pbs-buildkit]
5+
permissions:
6+
contents: read
7+
jobs:
8+
probe:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: docker/setup-buildx-action@v3
12+
with:
13+
buildkitd-flags: --allow-insecure-entitlement network.host
14+
- name: Write test Dockerfile
15+
run: |
16+
mkdir -p t
17+
printf 'FROM ubuntu:noble\nRUN apt-get update >/dev/null && apt-get install -y curl >/dev/null\nRUN curl -fsSL -r 0-0 "https://github.com/astral-sh/python-build-standalone/releases/download/20260623/cpython-3.13.14+20260623-x86_64-unknown-linux-gnu-install_only.tar.gz" -o /tmp/x && echo PBS-DL-OK\n' > t/Dockerfile
18+
cat t/Dockerfile
19+
- name: BuildKit default network (expect 404)
20+
continue-on-error: true
21+
run: docker buildx build --no-cache -f t/Dockerfile t 2>&1 | tail -6
22+
- name: BuildKit host network (expect OK)
23+
run: docker buildx build --no-cache --network=host --allow network.host -f t/Dockerfile t 2>&1 | tail -6

0 commit comments

Comments
 (0)