Skip to content

Commit d1c49bf

Browse files
authored
Merge pull request #116 from jplock/jp-bake
Only cache docker output
2 parents 5756cd3 + 536a64d commit d1c49bf

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.github/workflows/docker-bake.yml

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

1113
concurrency:
1214
group: ${{ github.workflow }}-${{ github.ref_name }}
@@ -15,6 +17,7 @@ concurrency:
1517
env:
1618
RUST_BACKTRACE: 1
1719
CARGO_TERM_COLOR: never
20+
NO_COLOR: 1
1821

1922
jobs:
2023
docker:

.github/workflows/rust.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ concurrency:
1515
env:
1616
RUST_BACKTRACE: 1
1717
CARGO_TERM_COLOR: never
18+
NO_COLOR: 1
1819

1920
jobs:
2021
test:

docker-bake.hcl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ target "parent" {
88
args = {
99
TARGETPLATFORM = "x86_64-unknown-linux-gnu"
1010
}
11+
attest = [
12+
"type=provenance,mode=max",
13+
"type=sbom",
14+
]
15+
platforms = ["linux/amd64"]
1116
tags = ["parent-vault:latest"]
17+
output = ["type=cacheonly"]
1218
cache-to = ["type=gha,ignore-error=true,mode=max,scope=parent"]
1319
cache-from = ["type=gha,scope=parent"]
1420
}
@@ -19,7 +25,13 @@ target "enclave" {
1925
args = {
2026
TARGETPLATFORM = "x86_64-unknown-linux-musl"
2127
}
28+
attest = [
29+
"type=provenance,mode=max",
30+
"type=sbom",
31+
]
32+
platforms = ["linux/amd64"]
2233
tags = ["enclave-vault:latest"]
34+
output = ["type=cacheonly"]
2335
cache-to = ["type=gha,ignore-error=true,mode=max,scope=enclave"]
2436
cache-from = ["type=gha,scope=enclave"]
2537
}

0 commit comments

Comments
 (0)