Skip to content

Commit ad2f3e1

Browse files
[CI] build demo images
Signed-off-by: Marc Dumais <[email protected]>
1 parent 99b9962 commit ad2f3e1

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/docker-example.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
node-version: ${{ matrix.node-version }}
3333

34-
- name: Build example app
34+
- name: Build Docker example images
3535
uses: nick-invision/retry@v3
3636
with:
3737
timeout_minutes: 10
@@ -41,7 +41,19 @@ jobs:
4141
command: |
4242
cd docker
4343
docker build . --build-arg RESOURCES=${{ matrix.params.resources-folder }} -t tv-${{ matrix.params.name }} -f Dockerfile-${{ matrix.params.name }}
44-
on_retry_command: cd ../..
44+
on_retry_command: cd ..
45+
46+
- name: Build "demo" version of the Docker image
47+
uses: nick-invision/retry@v3
48+
with:
49+
timeout_minutes: 10
50+
retry_wait_seconds: 15
51+
max_attempts: 1
52+
retry_on: error
53+
command: |
54+
cd docker
55+
yarn build:docker:${{ matrix.params.name }}-demo
56+
on_retry_command: cd ..
4557

4658
- name: Run docker image
4759
run: |
@@ -53,3 +65,6 @@ jobs:
5365
cd docker
5466
yarn --cwd ${{ matrix.params.resources-folder }} test
5567
68+
- name: Run "demo" version of the docker image
69+
run: |
70+
yarn run:docker:${{ matrix.params.name }}-demo

0 commit comments

Comments
 (0)