Skip to content

Commit d1ca496

Browse files
committed
try caching
1 parent 181f9c0 commit d1ca496

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/docker-bake.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
branches:
66
- main
7+
- jp-more-tweaks
78
pull_request:
89
branches:
910
- main
11+
- jp-more-tweaks
1012

1113
concurrency:
1214
group: ${{ github.workflow }}-${{ github.ref_name }}
@@ -18,7 +20,7 @@ env:
1820

1921
jobs:
2022
docker:
21-
if: github.repository_owner == 'aws-samples'
23+
# if: github.repository_owner == 'aws-samples'
2224
runs-on: ubuntu-latest
2325
steps:
2426
- name: Checkout
@@ -28,4 +30,6 @@ jobs:
2830
- name: Build
2931
uses: docker/bake-action@3fc70e1131fee40a422dd8dd0ff22014ae20a1f3 # v5.11.0
3032
env:
31-
SOURCE_DATE_EPOCH: 0
33+
SOURCE_DATE_EPOCH: 0
34+
with:
35+
push: false

docker-bake.hcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ target "parent" {
99
TARGETPLATFORM = "x86_64-unknown-linux-gnu"
1010
}
1111
tags = ["parent-vault:latest"]
12+
cache-to = ["type=gha,ignore-error=true,mode=max,scope=parent"]
13+
cache-from = ["type=gha,scope=parent"]
1214
}
1315

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

0 commit comments

Comments
 (0)