mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 11:57:37 +00:00
use cache
This commit is contained in:
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@@ -13,15 +13,10 @@ jobs:
|
|||||||
- name: Set up persistent Buildx builder
|
- name: Set up persistent Buildx builder
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
driver: docker-container
|
|
||||||
driver-opts: image=moby/buildkit:latest
|
|
||||||
install: true
|
install: true
|
||||||
use: true
|
- run: docker buildx du
|
||||||
name: gha-builder
|
|
||||||
cleanup: false
|
|
||||||
- run: docker buildx du --builder gha-builder
|
|
||||||
- name: Build via Make
|
- name: Build via Make
|
||||||
run: make login-lint
|
run: make login-lint
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- run: docker buildx du --builder gha-builder
|
- run: docker buildx du
|
||||||
|
2
Makefile
2
Makefile
@@ -33,7 +33,7 @@ login-help:
|
|||||||
@echo " clean-cache-keys - Remove all cache keys."
|
@echo " clean-cache-keys - Remove all cache keys."
|
||||||
|
|
||||||
login-lint-build:
|
login-lint-build:
|
||||||
docker buildx bake --builder gha-builder --provenance=false --pull login-lint
|
docker buildx bake --builder default --provenance=false --pull login-lint
|
||||||
|
|
||||||
login-lint-run:
|
login-lint-run:
|
||||||
docker run --rm $(LOGIN_LINT_TAG) lint
|
docker run --rm $(LOGIN_LINT_TAG) lint
|
||||||
|
@@ -39,10 +39,9 @@ target "login-lint" {
|
|||||||
tags = ["${LOGIN_LINT_TAG}"]
|
tags = ["${LOGIN_LINT_TAG}"]
|
||||||
output = [
|
output = [
|
||||||
"type=docker",
|
"type=docker",
|
||||||
"type=cacheonly"
|
|
||||||
]
|
]
|
||||||
cache-from = ["type=gha,scope=image"]
|
cache-from = ["type=gha"]
|
||||||
cache-to = ["type=gha,scope=image,ignore-error=true,mode=max"]
|
cache-to = ["type=gha,ignore-error=true,mode=max"]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "login-client" {
|
target "login-client" {
|
||||||
|
Reference in New Issue
Block a user