Skip to content

Commit 8b055a2

Browse files
committed
Add local Docker image build step for CI environment
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent 36c8dca commit 8b055a2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ jobs:
242242
action: test
243243
flags: --config=clang --test_timeout=1800
244244
# s390x build-tools image built from bazel/external/Dockerfile.bazel
245-
run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x ghcr.io/proxy-wasm/build-tools:ubuntu-22.04-bazel-6.5.0
245+
run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x proxy-wasm/build-tools:local-ci
246246
cache: true
247247
- name: 'Wasmtime on macOS/x86_64'
248248
engine: 'wasmtime'
@@ -298,6 +298,10 @@ jobs:
298298
echo "filegroup(name = \"$i\", srcs = [\"$i.wasm\"])" >> test/test_data/BUILD; \
299299
done
300300
301+
- name: Build local Docker image
302+
if: ${{ startsWith(matrix.run_under, 'docker') }}
303+
run: docker build -f bazel/external/Dockerfile.bazel -t proxy-wasm/build-tools:local-ci .
304+
301305
- name: Bazel build/test
302306
shell: bash
303307
run: >

0 commit comments

Comments
 (0)