Skip to content

Commit 9d24c65

Browse files
committed
ci: change cache-from to registry
1 parent 76db7ed commit 9d24c65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/benchmark.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
file: ./docker/benchmarker/Dockerfile
4949
tags: ${{ env.UNAME }}/ishocon2-app-bench:latest
5050
cache-from: type=registry,ref=${{ env.UNAME }}/ishocon2-app-bench:latest
51-
cache-to: type=inline
51+
cache-to: type=inline,ref=${{ env.UNAME }}/ishocon2-app-bench:latest
5252
- name: Build and push base image
5353
uses: docker/build-push-action@v5
5454
with:
@@ -57,17 +57,17 @@ jobs:
5757
file: ./docker/app/base/Dockerfile
5858
tags: ${{ env.UNAME }}/ishocon2-app-base:latest
5959
cache-from: type=registry,ref=${{ env.UNAME }}/ishocon2-app-base:latest
60-
cache-to: type=inline
60+
cache-to: type=inline,ref=${{ env.UNAME }}/ishocon2-app-base:latest
6161
- name: Build and push app image
6262
uses: docker/build-push-action@v5
6363
with:
6464
context: .
6565
push: true
6666
tags: ${{ env.UNAME }}/ishocon2-app-${{ env.ISHOCON_APP_LANG }}:latest
6767
file: ./docker/app/${{ env.ISHOCON_APP_LANG }}/Dockerfile
68-
cache-from: type=registry,ref=${{ env.UNAME }}/ishocon2-app-${{ env.ISHOCON_APP_LANG }}:latestst
69-
cache-to: type=inline
7068
build-args: BASE_IMAGE=${{ env.UNAME }}/ishocon2-app-base:latest
69+
cache-from: type=registry,ref=${{ env.UNAME }}/ishocon2-app-${{ env.ISHOCON_APP_LANG }}:latestst
70+
cache-to: type=inline,ref=${{ env.UNAME }}/ishocon2-app-${{ env.ISHOCON_APP_LANG }}:latest
7171
- run: make build
7272
timeout-minutes: 10
7373
- run: make up bench-with-db-init

0 commit comments

Comments
 (0)