Skip to content

Commit

Permalink
build(docker): disable cache-from and don't allow to fail on release (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Feb 20, 2025
1 parent f4bf1bf commit 7b7a6a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
[
"@semantic-release/exec",
{
"prepareCmd": "pnpm release:prepare --version=${nextRelease.version} --sha=${nextRelease.gitHead} --tries=3 --platform=linux/amd64,linux/arm64 --exit-on-error=false",
"publishCmd": "pnpm release:publish --version=${nextRelease.version} --sha=${nextRelease.gitHead} --platform=linux/amd64,linux/arm64 --exit-on-error=false"
"prepareCmd": "pnpm release:prepare --version=${nextRelease.version} --sha=${nextRelease.gitHead} --tries=3 --platform=linux/amd64,linux/arm64 --exit-on-error=true",
"publishCmd": "pnpm release:publish --version=${nextRelease.version} --sha=${nextRelease.gitHead} --platform=linux/amd64,linux/arm64 --exit-on-error=true"
}
]
],
Expand Down
16 changes: 8 additions & 8 deletions tools/docker/bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ target "settings" {
}

target "slim" {
cache-from = [
"type=registry,ref=ghcr.io/${OWNER}/${FILE}",
"type=registry,ref=ghcr.io/${OWNER}/docker-build-cache:${FILE}",
]
# cache-from = [
# "type=registry,ref=ghcr.io/${OWNER}/${FILE}",
# "type=registry,ref=ghcr.io/${OWNER}/docker-build-cache:${FILE}",
# ]
tags = [
"ghcr.io/${OWNER}/${FILE}",
"${FILE}/${FILE}",
Expand All @@ -81,10 +81,10 @@ target "full" {
args = {
BASE_IMAGE_TYPE = "full"
}
cache-from = [
"type=registry,ref=ghcr.io/${OWNER}/${FILE}:full",
"type=registry,ref=ghcr.io/${OWNER}/docker-build-cache:${FILE}-full",
]
# cache-from = [
# "type=registry,ref=ghcr.io/${OWNER}/${FILE}:full",
# "type=registry,ref=ghcr.io/${OWNER}/docker-build-cache:${FILE}-full",
# ]
tags = [
"ghcr.io/${OWNER}/${FILE}:full",
"${FILE}/${FILE}:full",
Expand Down

0 comments on commit 7b7a6a6

Please sign in to comment.