-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.17 KB
/
autogen-test.yaml
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
name: gha-docker-image-exists Test
on:
workflow_dispatch:
jobs:
valid-tag:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: gha-docker-image-exists valid tag
id: gha-docker-image-exists
continue-on-error: true
uses: Y0sh1dk/gha-docker-image-exists@feature/multi-arch-tests
with:
image: nginx:latest
- name: Check output
run: |
if [ ${{ steps.gha-docker-image-exists.outcome == 'success' }} ]; then
exit 0
else
exit 1
fi
invalid-tag:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: gha-docker-image-exists invalid tag
id: gha-docker-image-exists
continue-on-error: true
uses: Y0sh1dk/gha-docker-image-exists@feature/multi-arch-tests
with:
image: nginx:invalid-tag
- name: Check output
run: |
if [ ${{ steps.gha-docker-image-exists.outcome == 'failure' }} ]; then
exit 0
else
exit 1
fi