-
Notifications
You must be signed in to change notification settings - Fork 2
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 #1 from satackey/weight-saving
Weight saving
- Loading branch information
Showing
3 changed files
with
55 additions
and
10 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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
FROM docker:stable | ||
FROM docker:stable AS docker-cli | ||
|
||
WORKDIR /src | ||
COPY entrypoint.sh ./ | ||
FROM alpine | ||
|
||
COPY --from=docker-cli /usr/local/bin/docker /usr/local/bin/docker | ||
|
||
COPY entrypoint.sh /src/ | ||
ENTRYPOINT /src/entrypoint.sh |
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 |
---|---|---|
@@ -1 +1,43 @@ | ||
# action-latexmk | ||
# action-latexmk | ||
|
||
このアクションは指定されたファイルを`latexmk`コマンドでコンパイルします。 | ||
DooD(Docker outside of Docker)を使っているため、任意Dockerイメージが利用可能です。 | ||
|
||
## Inputs | ||
|
||
### `docker-image` | ||
|
||
**必須** `latexmk`コマンドを実行するためのレジストリで公開されている Docker イメージ | ||
|
||
### `build-files` | ||
|
||
**必須** 1行ごとに区切られたビルドするファイルリスト | ||
(`host-workspace`からの相対パス) | ||
デフォルトは`actions/checkout`でチェックアウトされるパスです。 | ||
|
||
### `host-workspace` | ||
|
||
**任意** ビルドするファイルのディレクトリ | ||
(ホストVMの絶対パス) | ||
このパスがDockerコンテナにマウントされます。 | ||
|
||
### `container-workdir` | ||
|
||
**任意** コンテナ内のワークディレクトリ | ||
このパスへDockerコンテナにマウントされます。 | ||
|
||
### `latexmk-options` | ||
**任意** `latexmk`コマンド実行時のオプション | ||
|
||
## 使用例 | ||
|
||
```yaml | ||
- name: Build LaTeX files | ||
uses: satackey/action-latexmk@v1 | ||
with: | ||
docker-image: paperist/alpine-texlive-ja | ||
build-files: | | ||
hoge/main.tex | ||
fuga/main.tex | ||
piyo/main.tex | ||
``` |
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