mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 17:27:31 +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
|
- name: Set up Docker Buildx
|
||||||
id: setup-buildx
|
id: setup-buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
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
|
- name: Bake login multi-arch
|
||||||
uses: docker/bake-action@v6
|
uses: docker/bake-action@v6
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: ${{ inputs.node_version }}
|
NODE_VERSION: ${{ inputs.node_version }}
|
||||||
DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
source: .
|
source: .
|
||||||
push: true
|
push: true
|
||||||
provenance: true
|
provenance: true
|
||||||
sbom: true
|
sbom: true
|
||||||
targets: login-standalone
|
targets: login-standalone
|
||||||
set: |
|
|
||||||
*.cache-from=type=gha
|
|
||||||
*.cache-to=type=gha,mode=max
|
|
||||||
files: |
|
files: |
|
||||||
./apps/login/docker-bake.hcl
|
./apps/login/docker-bake.hcl
|
||||||
./apps/login/docker-bake-release.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
|
# login-standalone should be extended by the login-standalone target in apps/login/docker-bake.hcl
|
||||||
target "login-standalone" {
|
target "login-standalone" {
|
||||||
dockerfile = "build/login/Dockerfile"
|
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" {
|
target "login-standalone-out" {
|
||||||
inherits = ["login-standalone"]
|
inherits = ["login-standalone"]
|
||||||
target = "build-out"
|
target = "build-out"
|
||||||
output = [
|
output = ["type=local,dest=.artifacts/login"]
|
||||||
"type=local,dest=.artifacts/login"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue
Block a user