Skip to content

Commit

Permalink
Setup image caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Whitlock authored Oct 9, 2024
1 parent 141da54 commit 8d840fb
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ jobs:
uses: docker/bake-action@v5
with:
files: .github/docker-compose.yml
load: true
targets: bootstrap
workdir: .
set: |
*.output=type=docker,name=<image>
*.cache-from=type=gha,scope=<image>
*.cache-to=type=gha,mode=max,scope=<image>
- name: Bootstrap the environment Dockerfile
run: docker run -v ${GITHUB_WORKSPACE}/.github:/configs local/bootstrap
Expand All @@ -35,16 +38,22 @@ jobs:
files: .github/docker-compose.yml
targets: env
workdir: .
set: env.output=type=docker,name=<image>
set: |
*.output=type=docker,name=<image>
*.cache-from=type=gha,scope=<image>
*.cache-to=type=gha,mode=max,scope=<image>
- name: Build Fenix
uses: docker/bake-action@v5
with:
source: .
files: .github/docker-compose.yml
load: true
targets: fenix
workdir: .
set: |
*.output=type=docker,name=<image>
*.cache-from=type=gha,scope=<image>
*.cache-to=type=gha,mode=max,scope=<image>
- name: Test Fenix
run: docker run local/fenix

0 comments on commit 8d840fb

Please sign in to comment.