-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from kmc-jp/2021-summer
2021 summerの更新のバックポート( Fixes #1 )
- Loading branch information
Showing
7 changed files
with
162 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: build bushi | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
- name: build pdf | ||
run: docker run --mount type=bind,source="$(pwd)",target=/workdir ghcr.io/kmc-jp/bushi-build-image:latest | ||
- name: save log | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: log | ||
path: out/*.log | ||
- name: save artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: bushi.pdf | ||
path: out/bushi.pdf | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: build and push bushi build image | ||
on: | ||
push: | ||
tags: | ||
- 'image/*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: get tag | ||
id: variables | ||
run: echo "::set-output name=tag::${GITHUB_REF##*/}" | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
- name: Log in to GitHub Docker Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build container image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: docker | ||
push: true | ||
tags: | | ||
ghcr.io/${{ github.repository_owner }}/bushi-build-image:latest | ||
ghcr.io/${{ github.repository_owner }}/bushi-build-image:${{ steps.variables.outputs.tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: build bushi and make release on tag pushed | ||
on: | ||
push: | ||
tags: | ||
- 'rel/*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: get tag | ||
id: variables | ||
run: echo "::set-output name=tag::${GITHUB_REF##*/}" | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
- name: build pdf | ||
run: docker run --mount type=bind,source="$(pwd)",target=/workdir ghcr.io/kmc-jp/bushi-build-image:latest | ||
- name: save log | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: log | ||
path: out/*.log | ||
- name: save artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: bushi.pdf | ||
path: out/bushi.pdf | ||
if-no-files-found: error | ||
- name: create release | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: ${{ steps.variables.outputs.tag }} | ||
prerelease: false | ||
title: ${{ steps.variables.outputs.tag }} | ||
files: | | ||
out/bushi.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters