Skip to content

Commit

Permalink
Merge pull request #116 from jplock/jp-bake
Browse files Browse the repository at this point in the history
Only cache docker output
  • Loading branch information
jplock authored Dec 20, 2024
2 parents 5756cd3 + 536a64d commit d1c49bf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 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-bake
pull_request:
branches:
- main
- jp-bake

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
Expand All @@ -15,6 +17,7 @@ concurrency:
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: never
NO_COLOR: 1

jobs:
docker:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ concurrency:
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: never
NO_COLOR: 1

jobs:
test:
Expand Down
12 changes: 12 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ target "parent" {
args = {
TARGETPLATFORM = "x86_64-unknown-linux-gnu"
}
attest = [
"type=provenance,mode=max",
"type=sbom",
]
platforms = ["linux/amd64"]
tags = ["parent-vault:latest"]
output = ["type=cacheonly"]
cache-to = ["type=gha,ignore-error=true,mode=max,scope=parent"]
cache-from = ["type=gha,scope=parent"]
}
Expand All @@ -19,7 +25,13 @@ target "enclave" {
args = {
TARGETPLATFORM = "x86_64-unknown-linux-musl"
}
attest = [
"type=provenance,mode=max",
"type=sbom",
]
platforms = ["linux/amd64"]
tags = ["enclave-vault:latest"]
output = ["type=cacheonly"]
cache-to = ["type=gha,ignore-error=true,mode=max,scope=enclave"]
cache-from = ["type=gha,scope=enclave"]
}

0 comments on commit d1c49bf

Please sign in to comment.