mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 04:37:31 +00:00
cache compose tests
This commit is contained in:
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -38,6 +38,7 @@ jobs:
|
|||||||
images: |
|
images: |
|
||||||
ghcr.io/zitadel/login
|
ghcr.io/zitadel/login
|
||||||
tags: |
|
tags: |
|
||||||
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
@@ -51,7 +52,7 @@ jobs:
|
|||||||
id: run-caches-restore
|
id: run-caches-restore
|
||||||
with:
|
with:
|
||||||
path: ${{ env.CACHE_DIR }}
|
path: ${{ env.CACHE_DIR }}
|
||||||
key: login-run-caches-${{ github.ref == 'refs/heads/main' && 'latest' || fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
|
key: login-run-caches-${{ env.DOCKER_METADATA_OUTPUT_VERSION }}
|
||||||
restore-keys: login-run-caches-latest
|
restore-keys: login-run-caches-latest
|
||||||
- name: Show Run Caches
|
- name: Show Run Caches
|
||||||
run: make show-run-caches
|
run: make show-run-caches
|
||||||
@@ -60,7 +61,6 @@ jobs:
|
|||||||
# latest if branch is main, otherwise image version which is the pull request number
|
# latest if branch is main, otherwise image version which is the pull request number
|
||||||
BAKE_CLI: depot bake
|
BAKE_CLI: depot bake
|
||||||
DEPOT_PROJECT_ID: jp837jn3fm
|
DEPOT_PROJECT_ID: jp837jn3fm
|
||||||
DOCKER_METADATA_OUTPUT_VERSION: ${{ github.ref == 'refs/heads/main' && 'latest' || fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
|
|
||||||
FORCE: ${{ github.event.inputs.clean-run-caches == 'true' }}
|
FORCE: ${{ github.event.inputs.clean-run-caches == 'true' }}
|
||||||
- name: Save Run Caches
|
- name: Save Run Caches
|
||||||
uses: actions/cache/save@v4
|
uses: actions/cache/save@v4
|
||||||
|
Reference in New Issue
Block a user