-
Notifications
You must be signed in to change notification settings - Fork 24
59 lines (40 loc) · 1.16 KB
/
MWE-814.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Reproducer for https://github.com/actions/runner/issues/814
name: MWE 814
on:
push:
env:
DOCKER_BUILDKIT: 1
jobs:
local-container-image:
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
shell: bash
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.sh
local-container-image-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./utils/mwe-local-container-image
local-container-workaround:
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.sh