@@ -16,6 +16,7 @@ defaults:
1616jobs :
1717 build-linux-amd64 :
1818 name : Build & push linux/amd64
19+ if : github.repository == 'codefresh-io/argo-workflows'
1920 runs-on : ubuntu-20.04
2021 strategy :
2122 matrix :
8384
8485 build-linux-arm64 :
8586 name : Build & push linux/arm64
87+ if : github.repository == 'codefresh-io/argo-workflows'
8688 runs-on : ubuntu-20.04
8789 strategy :
8890 matrix :
@@ -155,6 +157,7 @@ jobs:
155157
156158 build-windows :
157159 name : Build & push windows
160+ if : github.repository == 'codefresh-io/argo-workflows'
158161 runs-on : windows-2019
159162 steps :
160163 - uses : actions/checkout@v2
@@ -194,56 +197,11 @@ jobs:
194197 docker push quay.io/$image_name
195198 done
196199
197- push-linux-amd64-images :
198- name : Push manifest with linux/amd64
199- runs-on : ubuntu-20.04
200- needs : [ build-linux-amd64 ]
201- steps :
202- - uses : actions/checkout@v2
203- # # Codefresh - remove dockerhub
204- # - name: Docker Login
205- # uses: Azure/docker-login@v1
206- # with:
207- # username: ${{ secrets.DOCKERIO_USERNAME }}
208- # password: ${{ secrets.DOCKERIO_PASSWORD }}
209-
210- - name : Login to Quay
211- uses : Azure/docker-login@v1
212- with :
213- login-server : quay.io
214- username : ${{ secrets.QUAYIO_USERNAME }}
215- password : ${{ secrets.QUAYIO_PASSWORD }}
216-
217- - name : Push Multiarch Image
218- env :
219- DOCKERIO_ORG : ${{ secrets.DOCKERIO_ORG }}
220- run : |
221- echo $(jq -c '. + { "experimental": "enabled" }' ${DOCKER_CONFIG}/config.json) > ${DOCKER_CONFIG}/config.json
222-
223- docker_org=$DOCKERIO_ORG
224-
225- tag=$(basename $GITHUB_REF)
226- if [ $tag = "master" ]; then
227- tag="latest"
228- fi
229-
230- targets="workflow-controller argoexec argocli"
231- for target in $targets; do
232- image_name="${docker_org}/${target}:${tag}"
233-
234- ## Codefresh - remove dockerhub
235- # docker manifest create $image_name ${image_name}-linux-amd64
236- docker manifest create quay.io/$image_name quay.io/${image_name}-linux-amd64
237-
238- ## Codefresh - remove dockerhub
239- # docker manifest push $image_name
240- docker manifest push quay.io/$image_name
241- done
242-
243200 push-images :
244201 name : Push manifest with all images
202+ if : github.repository == 'codefresh-io/argo-workflows'
245203 runs-on : ubuntu-20.04
246- needs : [ build-linux-arm64 , build-windows, push-linux-amd64-images ]
204+ needs : [ build-linux-amd64 , build-linux-arm64, build-windows ]
247205 steps :
248206 - uses : actions/checkout@v2
249207 # # Codefresh - remove dockerhub
@@ -291,8 +249,10 @@ jobs:
291249 # docker manifest push $image_name
292250 docker manifest push quay.io/$image_name
293251 done
252+
294253 test-images-linux-amd64 :
295254 name : Try pulling linux/amd64
255+ if : github.repository == 'codefresh-io/argo-workflows'
296256 runs-on : ubuntu-20.04
297257 needs : [ push-images ]
298258 strategy :
@@ -332,6 +292,7 @@ jobs:
332292
333293 test-images-windows :
334294 name : Try pulling windows
295+ if : github.repository == 'codefresh-io/argo-workflows'
335296 runs-on : windows-2019
336297 needs : [ push-images ]
337298 steps :
@@ -368,6 +329,7 @@ jobs:
368329
369330 publish-release :
370331 runs-on : ubuntu-20.04
332+ if : github.repository == 'codefresh-io/argo-workflows'
371333 needs : [ push-images, test-images-linux-amd64, test-images-windows ]
372334 env :
373335 NODE_OPTIONS : --max-old-space-size=4096
@@ -385,7 +347,7 @@ jobs:
385347 key : ${{ runner.os }}-node-dep-v1-${{ hashFiles('**/yarn.lock') }}
386348 - uses : actions/setup-go@v2
387349 with :
388- go-version : " 1.15.7 "
350+ go-version : " 1.16 "
389351 - uses : actions/cache@v2
390352 with :
391353 path : /home/runner/.cache/go-build
0 commit comments