-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Runner FeatureFeature scope to the runnerFeature scope to the runnerenhancementNew feature or requestNew feature or request
Description
jobs:
job:
runs-on: ubuntu-latest
steps:
# BUG: GitHub's runner tries to build the last action before starting the first step.
# It fails, because container image image_name does not exist yet.
- name: Build hdlc/doc
run: |
docker build -t image_name - <<-EOF
FROM asciidoctor/docker-asciidoctor
RUN apk add -U --no-cache graphviz
EOF
- uses: actions/checkout@v2
- uses: docker://image_name
with:
args: doc/make.shAs a result, it is currently not possible to use local containers using the uses: docker:// syntax.
The alternative is to call docker explicitly, which requires handling all the environment manually (if necessary):
jobs:
job:
runs-on: ubuntu-latest
steps:
- name: Build hdlc/doc
run: |
docker build -t image_name - <<-EOF
FROM asciidoctor/docker-asciidoctor
RUN apk add -U --no-cache graphviz
EOF
- uses: actions/checkout@v2
- name: Build site
run: docker run -v /$(pwd)://documents/ image_name ./doc/make.shUsing local docker images in container steps should be supported too.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Runner FeatureFeature scope to the runnerFeature scope to the runnerenhancementNew feature or requestNew feature or request