Skip to content

Commit

Permalink
Docker版
Browse files Browse the repository at this point in the history
  • Loading branch information
huideyeren committed Aug 27, 2024
1 parent 70874d7 commit 210a024
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile → .github/actions/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc && \

RUN pnpm install
RUN pnpm run style
RUN REVIEW_CONFIG_FILE=config-vivliostyle.yml REVIEW_VSCLI_USESANDBOX=true bundle exec rake vivliostyle
ENTRYPOINT ["./entrypoint.sh"]

5 changes: 5 additions & 0 deletions .github/actions/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: 'build-book'
description: 'Build Book by Vivliostyle'
runs:
using: 'docker'
image: 'Dockerfile'
File renamed without changes.
27 changes: 26 additions & 1 deletion .github/workflows/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,4 +232,29 @@ jobs:
with:
name: ${{ format('るいざ第3集_{0}_{1}', 'vivliostyle', steps.date.outputs.date) }}
path: book.pdf


vivliostyle-dockerfile:
# needs: reviewdog-github-check
name: Make PDF at Vivliostyle
runs-on: ubuntu-latest
container:
image: ghcr.io/huideyeren/review-docker:main
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Get current date and time
env:
TZ: "Asia/Tokyo" # タイムゾーンを指定
id: date
run: echo "::set-output name=date::$(date +'%Y年%m月%d日_%H時%M分')"
# '%Y-%m-%d %H:%M'の部分を書き換えれば、任意の表示に変更できる。
- name: Show date and time
run: echo ${{ steps.date.outputs.date }} # 2022-01-03 10:42
- name: Build Book
uses: ./
id: build-book
- name: Upload artifact.
uses: actions/upload-artifact@v3
with:
name: ${{ format('るいざ第3集_{0}_{1}', 'vivliostyle-docker', steps.date.outputs.date) }}
path: book.pdf

0 comments on commit 210a024

Please sign in to comment.