Skip to content

Commit 8d840fb

Browse files
Setup image caching
1 parent 141da54 commit 8d840fb

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci_checks.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ jobs:
2222
uses: docker/bake-action@v5
2323
with:
2424
files: .github/docker-compose.yml
25-
load: true
2625
targets: bootstrap
2726
workdir: .
27+
set: |
28+
*.output=type=docker,name=<image>
29+
*.cache-from=type=gha,scope=<image>
30+
*.cache-to=type=gha,mode=max,scope=<image>
2831
2932
- name: Bootstrap the environment Dockerfile
3033
run: docker run -v ${GITHUB_WORKSPACE}/.github:/configs local/bootstrap
@@ -35,16 +38,22 @@ jobs:
3538
files: .github/docker-compose.yml
3639
targets: env
3740
workdir: .
38-
set: env.output=type=docker,name=<image>
41+
set: |
42+
*.output=type=docker,name=<image>
43+
*.cache-from=type=gha,scope=<image>
44+
*.cache-to=type=gha,mode=max,scope=<image>
3945
4046
- name: Build Fenix
4147
uses: docker/bake-action@v5
4248
with:
4349
source: .
4450
files: .github/docker-compose.yml
45-
load: true
4651
targets: fenix
4752
workdir: .
53+
set: |
54+
*.output=type=docker,name=<image>
55+
*.cache-from=type=gha,scope=<image>
56+
*.cache-to=type=gha,mode=max,scope=<image>
4857
4958
- name: Test Fenix
5059
run: docker run local/fenix

0 commit comments

Comments
 (0)