Skip to content

Commit 26c3610

Browse files
authored
fix single-page-app CI failure: node_modules and dist from bazel tar files to prevent CI disk exhaustion (#935)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent aea1368 commit 26c3610

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/_verify_examples.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ jobs:
1111
examples:
1212
runs-on: ubuntu-24.04
1313
steps:
14+
- uses: envoyproxy/toolshed/gh-actions/bind-mounts@actions-v0.3.27
15+
with:
16+
mounts: |
17+
- src: /mnt/docker
18+
target: /var/lib/docker
19+
rm: true
20+
command-pre: sudo systemctl stop docker
21+
command-post: sudo systemctl start docker
22+
1423
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1524
- run: |
1625
TEMPDIR=/cache/docker

examples.bzl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
33
def envoy_example(name, shared = ":shared_files", common_fun = ":verify-common.sh"):
44
native.filegroup(
55
name = "%s_files" % name,
6-
srcs = native.glob(["%s/**/*" % name]),
6+
srcs = native.glob(
7+
["%s/**/*" % name],
8+
exclude = [
9+
"%s/**/node_modules/**" % name,
10+
"%s/**/dist/**" % name,
11+
],
12+
),
713
)
814

915
native.genrule(

0 commit comments

Comments
 (0)