Skip to content

Commit 6f5827b

Browse files
committed
ci: don't pull debug images
1 parent 2313370 commit 6f5827b

File tree

5 files changed

+21
-7
lines changed

5 files changed

+21
-7
lines changed

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555

5656
- name: Pull latest Docker images
5757
run: |
58-
./src/docker/pull.sh
58+
./src/docker/pull.sh --no-debug
5959
6060
- uses: actions/setup-node@v4
6161
with:

.github/workflows/javascript-typescript.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: Pull latest Docker images
2424
run: |
25-
./src/docker/pull.sh
25+
./src/docker/pull.sh --no-debug
2626
2727
- uses: actions/setup-node@v4
2828
with:

.github/workflows/toolchains.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Pull latest Docker images
1717
run: |
18-
./src/docker/pull.sh
18+
./src/docker/pull.sh --no-debug
1919
2020
- uses: actions/download-artifact@v4
2121
continue-on-error: true
@@ -57,7 +57,7 @@ jobs:
5757

5858
- name: Pull latest Docker images
5959
run: |
60-
./src/docker/pull.sh
60+
./src/docker/pull.sh --no-debug
6161
6262
- uses: actions/download-artifact@v4
6363
continue-on-error: true

.github/workflows/wasi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- name: Pull latest Docker images
2020
run: |
21-
./src/docker/pull.sh
21+
./src/docker/pull.sh --no-debug
2222
2323
- uses: actions/setup-node@v4
2424
with:

src/docker/pull.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,22 @@ exe=$(ociExe)
66

77
set -eo pipefail
88

9+
debug=true
10+
for param; do
11+
if [[ $param == '--no-debug' ]]; then
12+
debug=false
13+
else
14+
newparams+=("$param")
15+
fi
16+
done
17+
set -- "${newparams[@]}" # overwrites the original positional params
18+
919
$exe pull quay.io/itkwasm/emscripten:latest
10-
$exe pull quay.io/itkwasm/emscripten:latest-debug
20+
if $debug; then
21+
$exe pull quay.io/itkwasm/emscripten:latest-debug
22+
fi
1123

1224
$exe pull quay.io/itkwasm/wasi:latest
13-
$exe pull quay.io/itkwasm/wasi:latest-debug
25+
if $debug; then
26+
$exe pull quay.io/itkwasm/wasi:latest-debug
27+
fi

0 commit comments

Comments
 (0)