build(cache): do not use GHA cache for images (#3794)
GitHub's GHA cache gets invalidated at 10Gb, which is very easy to hit when we're building multiple times a day with several commits. Instead use the registry, which won't get invalidated until a change is identified in the build process.
This commit is contained in:
parent
bbef390944
commit
d8d3f6407c
|
|
@ -110,8 +110,8 @@ jobs:
|
||||||
CHECKPOINT_SYNC=${{ github.event.inputs.checkpoint_sync || true }}
|
CHECKPOINT_SYNC=${{ github.event.inputs.checkpoint_sync || true }}
|
||||||
SENTRY_DSN=${{ secrets.SENTRY_ENDPOINT }}
|
SENTRY_DSN=${{ secrets.SENTRY_ENDPOINT }}
|
||||||
push: true
|
push: true
|
||||||
cache-from: type=gha
|
cache-from: type=registry,ref=${{ env.GAR_BASE }}/${{ env.GITHUB_REF_SLUG_URL }}:buildcache
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=registry,ref=${{ env.GAR_BASE }}/${{ env.GITHUB_REF_SLUG_URL }}:buildcache,mode=max
|
||||||
|
|
||||||
deploy-nodes:
|
deploy-nodes:
|
||||||
name: Deploy Mainnet nodes
|
name: Deploy Mainnet nodes
|
||||||
|
|
|
||||||
|
|
@ -112,8 +112,8 @@ jobs:
|
||||||
RUST_LOG=debug
|
RUST_LOG=debug
|
||||||
SENTRY_DSN=${{ secrets.SENTRY_ENDPOINT }}
|
SENTRY_DSN=${{ secrets.SENTRY_ENDPOINT }}
|
||||||
push: true
|
push: true
|
||||||
cache-from: type=gha
|
cache-from: type=registry,ref=${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:buildcache
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=registry,ref=${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
|
||||||
|
|
||||||
# Test that Zebra can run a full mainnet sync after a PR is approved
|
# Test that Zebra can run a full mainnet sync after a PR is approved
|
||||||
test-full-sync:
|
test-full-sync:
|
||||||
|
|
|
||||||
|
|
@ -113,8 +113,8 @@ jobs:
|
||||||
RUST_LOG=debug
|
RUST_LOG=debug
|
||||||
SENTRY_DSN=${{ secrets.SENTRY_ENDPOINT }}
|
SENTRY_DSN=${{ secrets.SENTRY_ENDPOINT }}
|
||||||
push: true
|
push: true
|
||||||
cache-from: type=gha
|
cache-from: type=registry,ref=${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:buildcache
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=registry,ref=${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
|
||||||
|
|
||||||
# Run all the zebra tests, including tests that are ignored by default
|
# Run all the zebra tests, including tests that are ignored by default
|
||||||
test-all:
|
test-all:
|
||||||
|
|
|
||||||
|
|
@ -104,5 +104,5 @@ jobs:
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
push: true
|
push: true
|
||||||
cache-from: type=gha
|
cache-from: type=registry,ref=${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:buildcache
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=registry,ref=${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
|
||||||
|
|
|
||||||
|
|
@ -100,5 +100,5 @@ jobs:
|
||||||
ZEBRA_SKIP_IPV6_TESTS="1"
|
ZEBRA_SKIP_IPV6_TESTS="1"
|
||||||
SENTRY_DSN=${{ secrets.SENTRY_ENDPOINT }}
|
SENTRY_DSN=${{ secrets.SENTRY_ENDPOINT }}
|
||||||
push: true
|
push: true
|
||||||
cache-from: type=gha
|
cache-from: type=registry,ref=${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:buildcache
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=registry,ref=${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue