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 authored Nov 12, 2023
1 parent b993b01 commit a0d2af3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 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
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
Expand Down

0 comments on commit a0d2af3

Please sign in to comment.