mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:37:31 +00:00
cache compose tests
This commit is contained in:
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -53,9 +53,6 @@ jobs:
|
|||||||
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-${{ github.ref == 'refs/heads/main' && 'latest' || fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
|
||||||
restore-keys: login-run-caches-latest
|
restore-keys: login-run-caches-latest
|
||||||
- name: Clean up Run Caches
|
|
||||||
if: ${{ github.event.inputs.clean-run-caches == 'true' }}
|
|
||||||
run: make clean-run-caches
|
|
||||||
- name: Show Run Caches
|
- name: Show Run Caches
|
||||||
run: make show-run-caches
|
run: make show-run-caches
|
||||||
- run: make login-quality
|
- run: make login-quality
|
||||||
@@ -64,9 +61,10 @@ jobs:
|
|||||||
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'] }}
|
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' }}
|
||||||
- name: Save Run Caches
|
- name: Save Run Caches
|
||||||
uses: actions/cache/save@v4
|
uses: actions/cache/save@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ env.CACHE_DIR }}
|
path: ${{ env.CACHE_DIR }}
|
||||||
key: ${{ steps.run-caches-restore.outputs.cache-primary-key }}
|
key: ${{ steps.run-caches-restore.outputs.cache-primary-key }}
|
||||||
if: always() && steps.run-caches-restore.outputs.cache-hit != 'true'
|
if: always()
|
||||||
|
Reference in New Issue
Block a user