Skip to content

Commit

Permalink
Support selection of container image
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Dec 30, 2021
1 parent 468d403 commit 324ac0e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM sphinxdoc/sphinx:latest
FROM sphinxdoc/sphinx:2.4.4

LABEL "maintainer"="Ammar Askar <[email protected]>"

Expand Down
8 changes: 8 additions & 0 deletions Dockerfile.pdflatex
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM sphinxdoc/sphinx-pdflatex:4.3.2

LABEL "maintainer"="Ammar Askar <[email protected]>"

ADD entrypoint.py /entrypoint.py
ADD sphinx_action /sphinx_action

ENTRYPOINT ["/entrypoint.py"]
8 changes: 8 additions & 0 deletions Dockerfile.sphinx4
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM sphinxdoc/sphinx:4.3.2

LABEL "maintainer"="Ammar Askar <[email protected]>"

ADD entrypoint.py /entrypoint.py
ADD sphinx_action /sphinx_action

ENTRYPOINT ["/entrypoint.py"]
9 changes: 8 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ inputs:
A list of additional 'apt' packages to install before running
sphinx. (Setting this will force-enable 'update' as well.)
required: false
container:
description:
Run the build in the named container. Must be one of
'sphinx4', 'pdflatex', or 'default'.
required: false
default: 'default'
runs:
using: 'docker'
image: 'Dockerfile'
image: ${{ format('Dockerfile.{0}', inputs.container) }}

0 comments on commit 324ac0e

Please sign in to comment.