Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed May 8, 2024
1 parent 51f0e98 commit d86c619
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,27 @@ jobs:
id: build-upload
uses: docker/bake-action@v4
with:
push: false
push: true
# Using provenance to disable default attestation so it will build only desired images:
# https://github.com/orgs/community/discussions/45969
provenance: false
set: |
*.platform=linux/amd64
*.output=type=registry,push-by-digest=true,name-canonical=true
*.cache-from=type=local,src=/tmp/.buildx-cache
*.cache-to=type=local,mode=max,dest=/tmp/.buildx-cache-new
files: |
docker-bake.hcl
build.json
.github/workflows/env.hcl
# Temp fix for issue of fast size grow in local caching:
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Set output variables
id: bake_metadata
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/env.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# env.hcl
REGISTRY = "ghcr.io/"
2 changes: 1 addition & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ variable "LAPACK_VERSION" {
}

target "base" {
tags = ["${ORGANIZATION}/build-machine:newly-baked"]
tags = ["${ORGANIZATION}/build-machine:latest"]
context = "."
contexts = {
base-image = "docker-image://${BASE_IMAGE}"
Expand Down

0 comments on commit d86c619

Please sign in to comment.