Skip to content

Commit

Permalink
Merge pull request #84 from ymotongpoo/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 da918fb + 3cdd6fb commit 2e837ec
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [pull_request, push]
on:
pull_request:
push:
branches:
- japanese

jobs:
build:
Expand All @@ -18,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/japanese' }}
load: ${{ github.ref != 'refs/heads/japanese' }}
tags: ghcr.io/ymotongpoo/erlang-in-anger-pdf:latest
cache-from: type=gha
cache-to: type=gha,mode=max

- name: PDF build
run: |
Expand Down

0 comments on commit 2e837ec

Please sign in to comment.