From 2ecfd925e6509157f32bf6975cd9c434c7c8ad59 Mon Sep 17 00:00:00 2001 From: YOSHIMURA Yuu Date: Sun, 12 Nov 2023 14:22:50 +0900 Subject: [PATCH] Update docker build & push setting --- .github/workflows/ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ebc135..c159616 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,17 +22,16 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Get Docker image - run: docker-compose pull - continue-on-error: true - - name: Build Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: file: ./docker/Dockerfile platforms: linux/amd64 + load: true push: ${{ github.ref == 'refs/heads/master' }} tags: ghcr.io/rust-lang-ja/book-ja-pdf:latest + cache-from: type=gha + cache-to: type=gha,mode=max - name: PDF build run: docker-compose up --abort-on-container-exit