Skip to content

Commit

Permalink
Merge pull request #27 from rust-lang-ja/update-docker-setting
Browse files Browse the repository at this point in the history
Update docker build & push setting
  • Loading branch information
y-yu authored Nov 12, 2023
2 parents b993b01 + fbc8c0c commit bdc37fd
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 bdc37fd

Please sign in to comment.