From a0d2af3178058bd7251b4c9e0857833601f1a619 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 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ebc135..3959059 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 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