Skip to content

Commit

Permalink
ci: cache only app image
Browse files Browse the repository at this point in the history
  • Loading branch information
mickamy committed Jan 4, 2024
1 parent 435b52d commit 2ec68ec
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: make change-lang LANG=$ISHOCON_APP_LANG
- run: |
sed -i 's/ishocon2-app-base/'"${{ env.UNAME }}"'\/ishocon2-app-base/g' ./docker-compose.yml;
sed -i 's/ishocon2-bench/'"${{ env.UNAME }}"'\/ishocon2-app-bench/g' ./docker-compose.yml;
cat ./docker-compose.yml;
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5.1.0
with:
context: .
file: ./docker/app/base/Dockerfile
cache-from: type=gha
cache-to: type=local,mode=max,dest=.cache/base
load: true
tags: ${{ env.UNAME }}/ishocon2-app-base:latest
- uses: docker/build-push-action@v5.1.0
with:
context: .
file: ./docker/benchmarker/Dockerfile
cache-from: type=gha
cache-to: type=local,mode=max,dest=.cache/bench
load: true
tags: ${{ env.UNAME }}/ishocon2-app-bench:latest
- uses: docker/build-push-action@v5.1.0
with:
context: .
file: ./docker/app/${{ env.ISHOCON_APP_LANG }}/Dockerfile
cache-from: type=local,src=.cache/base
cache-from: type=gha
cache-to: type=gha,mode=max
load: true
tags: ${{ env.UNAME }}/ishocon2-app-${{ env.ISHOCON_APP_LANG }}:latest
tags: ${{ github.actor }}/ishocon2-app-${{ env.ISHOCON_APP_LANG }}:latest
- run: make build
timeout-minutes: 5
- run: make up bench-with-db-init
Expand Down

0 comments on commit 2ec68ec

Please sign in to comment.