Skip to content

Commit

Permalink
ci: change cache-to and cache-from to registry
Browse files Browse the repository at this point in the history
  • Loading branch information
mickamy committed Jan 5, 2024
1 parent 4368a5f commit 5d03001
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
file: ./docker/benchmarker/Dockerfile
tags: ${{ env.UNAME }}/ishocon2-app-bench:latest
cache-from: type=registry,ref=${{ env.UNAME }}/ishocon2-app-bench:latest
cache-to: type=inline
cache-to: type=registry,ref=${{ env.UNAME }}/ishocon2-app-bench:latest
- name: Build and push base image
uses: docker/build-push-action@v5
with:
Expand All @@ -57,17 +57,17 @@ jobs:
file: ./docker/app/base/Dockerfile
tags: ${{ env.UNAME }}/ishocon2-app-base:latest
cache-from: type=registry,ref=${{ env.UNAME }}/ishocon2-app-base:latest
cache-to: type=inline
cache-to: type=registry,ref=${{ env.UNAME }}/ishocon2-app-base:latest
- name: Build and push app image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.UNAME }}/ishocon2-app-${{ env.ISHOCON_APP_LANG }}:latest
file: ./docker/app/${{ env.ISHOCON_APP_LANG }}/Dockerfile
cache-from: type=registry,ref=${{ env.UNAME }}/ishocon2-app-${{ env.ISHOCON_APP_LANG }}:latestst
cache-to: type=inline
build-args: BASE_IMAGE=${{ env.UNAME }}/ishocon2-app-base:latest
cache-from: type=registry,ref=${{ env.UNAME }}/ishocon2-app-${{ env.ISHOCON_APP_LANG }}:latestst
cache-to: type=registry,ref=${{ env.UNAME }}/ishocon2-app-${{ env.ISHOCON_APP_LANG }}:latest
- run: make build
timeout-minutes: 10
- run: make up bench-with-db-init
Expand Down

0 comments on commit 5d03001

Please sign in to comment.