File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,18 @@ jobs:
13
13
matrix :
14
14
chain :
15
15
# TODO: make it dynamic
16
+ - axone
16
17
- juno
17
18
- nolus
18
19
- govgen
19
20
20
21
runs-on : ubuntu-latest
21
22
steps :
22
23
- name : Checkout
23
- uses : actions/checkout@v3
24
+ uses : actions/checkout@v4
25
+
26
+ - name : Setup Go
27
+ uses : actions/setup-go@v5
24
28
25
29
# TODO: first check if docker image not already exist
26
30
@@ -86,11 +90,21 @@ jobs:
86
90
type=raw,value=latest
87
91
type=raw,value=${{ steps.version.outputs.result }}
88
92
93
+ - name : Check if image already exist
94
+ id : image_exists
95
+ continue-on-error : true
96
+ uses :
cloudposse/[email protected]
97
+ with :
98
+ image_name : " ${{ github.repository }}/${{ matrix.chain }}"
99
+ registry : ghcr.io
100
+ tag : " ${{ steps.version.outputs.result }}"
101
+
89
102
# TODO: Check if the directory have a custom Dockerfile
90
103
# in that case, build a different image
91
104
92
105
- name : Build and push
93
106
uses : docker/build-push-action@v3
107
+ if : " steps.image_exists.outcome == 'failure'"
94
108
with :
95
109
file : " ./Dockerfile"
96
110
context : ./${{ matrix.chain }}
You can’t perform that action at this time.
0 commit comments