Skip to content

Commit 2d6050f

Browse files
authored
ci: run "bazel clean" before pushing container images (#305)
I observed failed CI runs due to the disk of the CI runner being full. To work around this, we can simply clear the output base after the regular build and tests, but before pushing container images.
1 parent d5cf947 commit 2d6050f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/main.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,11 @@
575575
"name": "Install Docker credentials",
576576
"run": "echo \"${GITHUB_TOKEN}\" | docker login ghcr.io -u $ --password-stdin"
577577
},
578+
{
579+
"if": "matrix.host.upload",
580+
"name": "Clean Bazel cache from previous steps",
581+
"run": "bazel clean"
582+
},
578583
{
579584
"if": "matrix.host.upload",
580585
"name": "Push container bb_copy:bb_copy",

tools/github_workflows/workflows_template.libsonnet

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@
131131
},
132132
'if': 'matrix.host.upload',
133133
},
134+
{
135+
name: 'Clean Bazel cache from previous steps',
136+
run: 'bazel clean',
137+
'if': 'matrix.host.upload',
138+
},
134139
] + [
135140
{
136141
name: 'Push container %s' % container,

0 commit comments

Comments
 (0)