mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 15:49:35 +00:00
bake
This commit is contained in:
32
.github/workflows/login-container.yml
vendored
32
.github/workflows/login-container.yml
vendored
@@ -66,48 +66,16 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
id: setup-buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Cache
|
||||
uses: actions/cache@v4
|
||||
id: cache
|
||||
with:
|
||||
path: .artifacts/cache-mount
|
||||
key: login-build-cache-mount-${{ hashFiles('build/login/Dockerfile') }}
|
||||
- name: Restore Docker login-build-cache-mount
|
||||
uses: reproducible-containers/buildkit-cache-dance@v3
|
||||
with:
|
||||
builder: ${{ steps.setup-buildx.outputs.name }}
|
||||
cache-dir: .artifacts/login-build-cache-mount
|
||||
cache-map: |
|
||||
{
|
||||
".artifacts/login-build-cache-mount/pnpm":{
|
||||
"id":"pnpm",
|
||||
"target":"/pnpm/store"
|
||||
},
|
||||
".artifacts/login-build-cache-mount/turbo":{
|
||||
"id":"turbo",
|
||||
"target":"/build/.turbo/cache"
|
||||
},
|
||||
".artifacts/login-build-cache-mount/next":{
|
||||
"id":"next",
|
||||
"target":"/build/apps/login/.next/cache"
|
||||
}
|
||||
}
|
||||
dockerfile: build/login/Dockerfile
|
||||
skip-extraction: ${{ steps.cache.outputs.cache-hit }}
|
||||
- name: Bake login multi-arch
|
||||
uses: docker/bake-action@v6
|
||||
env:
|
||||
NODE_VERSION: ${{ inputs.node_version }}
|
||||
DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}
|
||||
with:
|
||||
source: .
|
||||
push: true
|
||||
provenance: true
|
||||
sbom: true
|
||||
targets: login-standalone
|
||||
set: |
|
||||
*.cache-from=type=gha
|
||||
*.cache-to=type=gha,mode=max
|
||||
files: |
|
||||
./apps/login/docker-bake.hcl
|
||||
./apps/login/docker-bake-release.hcl
|
||||
|
@@ -1,13 +1,13 @@
|
||||
# login-standalone should be extended by the login-standalone target in apps/login/docker-bake.hcl
|
||||
target "login-standalone" {
|
||||
dockerfile = "build/login/Dockerfile"
|
||||
cache-from = ["type=gha,scope=login-build-{{.Platform}}"]
|
||||
cache-to = ["type=gha,mode=max,scope=login-build-{{.Platform}}"]
|
||||
}
|
||||
|
||||
target "login-standalone-out" {
|
||||
inherits = ["login-standalone"]
|
||||
target = "build-out"
|
||||
output = [
|
||||
"type=local,dest=.artifacts/login"
|
||||
]
|
||||
output = ["type=local,dest=.artifacts/login"]
|
||||
}
|
||||
|
Reference in New Issue
Block a user