4343
4444 - name : Login to Docker Hub
4545 uses : docker/login-action@v3
46- if : >
47- ${{
48- (github.ref == 'refs/heads/main' ||
49- github.ref == 'refs/heads/develop' ||
50- startsWith(github.ref, 'refs/tags/')
51- ) &&
52- github.event_name == 'push'
53- }}
46+ if : ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/')) && github.event_name == 'push' }}
5447 with :
5548 username : ${{ secrets.DOCKERHUB_USERNAME }}
5649 password : ${{ secrets.DOCKERHUB_PASSWORD }}
6962 outputs : type=image,name=${{ env.REGISTRY_NODE_IMAGE }},push-by-digest=true,name-canonical=true,push=false
7063
7164 - name : Push Docker image by digest
72- if : >
73- ${{
74- (github.ref == 'refs/heads/main' ||
75- github.ref == 'refs/heads/develop' ||
76- startsWith(github.ref, 'refs/tags/')
77- ) &&
78- github.event_name == 'push'
79- }}
65+ if : ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/')) && github.event_name == 'push' }}
8066 uses : docker/build-push-action@v6
8167 with :
8268 context : .
@@ -100,14 +86,7 @@ jobs:
10086
10187 merge-openmina-node-image :
10288 runs-on : ubuntu-latest
103- if : >
104- ${{
105- (github.ref == 'refs/heads/main' ||
106- github.ref == 'refs/heads/develop' ||
107- startsWith(github.ref, 'refs/tags/')
108- ) &&
109- github.event_name == 'push'
110- }}
89+ if : ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/')) && github.event_name == 'push' }}
11190 needs :
11291 - build-openmina-node-image
11392 steps :
@@ -174,14 +153,7 @@ jobs:
174153
175154 - name : Login to Docker Hub
176155 uses : docker/login-action@v3
177- if : >
178- ${{
179- (github.ref == 'refs/heads/main' ||
180- github.ref == 'refs/heads/develop' ||
181- startsWith(github.ref, 'refs/tags/')
182- ) &&
183- github.event_name == 'push'
184- }}
156+ if : ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/')) && github.event_name == 'push' }}
185157 with :
186158 username : ${{ secrets.DOCKERHUB_USERNAME }}
187159 password : ${{ secrets.DOCKERHUB_PASSWORD }}
@@ -202,14 +174,7 @@ jobs:
202174 outputs : type=image,name=${{ env.REGISTRY_FRONTEND_IMAGE }},push-by-digest=true,name-canonical=true,push=false
203175
204176 - name : Push Docker image by digest
205- if : >
206- ${{
207- (github.ref == 'refs/heads/main' ||
208- github.ref == 'refs/heads/develop' ||
209- startsWith(github.ref, 'refs/tags/')
210- ) &&
211- github.event_name == 'push'
212- }}
177+ if : ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/')) && github.event_name == 'push' }}
213178 uses : docker/build-push-action@v6
214179 with :
215180 context : ./frontend
@@ -239,14 +204,7 @@ jobs:
239204 configuration :
240205 - build_configuration : production
241206 runs-on : ubuntu-latest
242- if : >
243- ${{
244- (github.ref == 'refs/heads/main' ||
245- github.ref == 'refs/heads/develop' ||
246- startsWith(github.ref, 'refs/tags/')
247- ) &&
248- github.event_name == 'push'
249- }}
207+ if : ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/')) && github.event_name == 'push' }}
250208 needs :
251209 - build-openmina-frontend-image
252210 steps :
0 commit comments