Skip to content

Commit

Permalink
try to use cache for docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Welkin committed Jun 20, 2023
1 parent 339749f commit 22bc968
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
file: ./op-node/Dockerfile
push: true
tags: ${{ steps.image.outputs.IMAGE_ID }}:${{ steps.image.outputs.VERSION }},${{ steps.image.outputs.IMAGE_ID }}:latest
cache-from: type=registry,ref=${{ steps.image.outputs.IMAGE_ID }}:buildcache
cache-to: type=registry,ref=${{ steps.image.outputs.IMAGE_ID }}:buildcache,mode=max

push-op-batcher:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -81,6 +83,8 @@ jobs:
file: ./op-batcher/Dockerfile
push: true
tags: ${{ steps.image.outputs.IMAGE_ID }}:${{ steps.image.outputs.VERSION }},${{ steps.image.outputs.IMAGE_ID }}:latest
cache-from: type=registry,ref=${{ steps.image.outputs.IMAGE_ID }}:buildcache
cache-to: type=registry,ref=${{ steps.image.outputs.IMAGE_ID }}:buildcache,mode=max
push-op-proposer:
runs-on: ubuntu-latest
if: github.event_name == 'push'
Expand Down Expand Up @@ -117,3 +121,5 @@ jobs:
file: ./op-proposer/Dockerfile
push: true
tags: ${{ steps.image.outputs.IMAGE_ID }}:${{ steps.image.outputs.VERSION }},${{ steps.image.outputs.IMAGE_ID }}:latest
cache-from: type=registry,ref=${{ steps.image.outputs.IMAGE_ID }}:buildcache
cache-to: type=registry,ref=${{ steps.image.outputs.IMAGE_ID }}:buildcache,mode=max

0 comments on commit 22bc968

Please sign in to comment.