Skip to content

Commit

Permalink
Update docker build & push setting
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yu committed Nov 12, 2023
1 parent b993b01 commit fbc8c0c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
push: ${{ github.ref == 'refs/heads/master' }}
load: ${{ 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
Expand Down

0 comments on commit fbc8c0c

Please sign in to comment.