Skip to content

Commit

Permalink
try caching
Browse files Browse the repository at this point in the history
  • Loading branch information
jplock committed Dec 20, 2024
1 parent 181f9c0 commit d1ca496
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker-bake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- main
- jp-more-tweaks
pull_request:
branches:
- main
- jp-more-tweaks

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
Expand All @@ -18,7 +20,7 @@ env:

jobs:
docker:
if: github.repository_owner == 'aws-samples'
# if: github.repository_owner == 'aws-samples'
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -28,4 +30,6 @@ jobs:
- name: Build
uses: docker/bake-action@3fc70e1131fee40a422dd8dd0ff22014ae20a1f3 # v5.11.0
env:
SOURCE_DATE_EPOCH: 0
SOURCE_DATE_EPOCH: 0
with:
push: false
4 changes: 4 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ target "parent" {
TARGETPLATFORM = "x86_64-unknown-linux-gnu"
}
tags = ["parent-vault:latest"]
cache-to = ["type=gha,ignore-error=true,mode=max,scope=parent"]
cache-from = ["type=gha,scope=parent"]
}

target "enclave" {
Expand All @@ -18,4 +20,6 @@ target "enclave" {
TARGETPLATFORM = "x86_64-unknown-linux-musl"
}
tags = ["enclave-vault:latest"]
cache-to = ["type=gha,ignore-error=true,mode=max,scope=enclave"]
cache-from = ["type=gha,scope=enclave"]
}

0 comments on commit d1ca496

Please sign in to comment.