Skip to content

Commit 995f720

Browse files
authored
Move publish-resources to before publish-bundle (#350)
The containerRepository needs to be created before the IIB build, since IIB uses registry proxy to resolve the pullspec.
1 parent 332629d commit 995f720

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

ansible/roles/operator-pipeline/templates/openshift/pipelines/operator-release-pipeline.yml

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,34 @@ spec:
414414
- name: image-data
415415
workspace: image-data
416416

417+
# Publish Vendor, Repository
418+
- name: publish-resources
419+
runAfter:
420+
- create-container-image
421+
taskRef:
422+
name: publish-resources
423+
params:
424+
- name: pipeline_image
425+
value: "$(params.pipeline_image)"
426+
- name: cert_project_id
427+
value: "$(tasks.certification-project-check.results.certification_project_id)"
428+
- name: org_id
429+
value: "$(tasks.get-cert-project-related-data.results.org_id)"
430+
- name: pyxis_url
431+
value: "$(tasks.set-env.results.pyxis_url)"
432+
- name: pyxis_ssl_secret_name
433+
value: "$(params.pyxis_ssl_secret_name)"
434+
- name: pyxis_ssl_cert_secret_key
435+
value: "$(params.pyxis_ssl_cert_secret_key)"
436+
- name: pyxis_ssl_key_secret_key
437+
value: "$(params.pyxis_ssl_key_secret_key)"
438+
- name: connect_registry
439+
value: "$(tasks.set-env.results.connect_registry)"
440+
417441
# call IIB to publish the bundle
418442
- name: publish-bundle
419443
runAfter:
420-
- create-container-image
444+
- publish-resources
421445
- get-supported-versions
422446
when: &whenNotUndistributed
423447
- input: &operatorDistribution "$(tasks.get-cert-project-related-data.results.operator_distribution)"
@@ -527,29 +551,6 @@ spec:
527551
workspace: repository
528552
subPath: signing
529553

530-
# Publish Vendor, Repository
531-
- name: publish-resources
532-
runAfter:
533-
- publish-bundle
534-
taskRef:
535-
name: publish-resources
536-
params:
537-
- name: pipeline_image
538-
value: "$(params.pipeline_image)"
539-
- name: cert_project_id
540-
value: "$(tasks.certification-project-check.results.certification_project_id)"
541-
- name: org_id
542-
value: "$(tasks.get-cert-project-related-data.results.org_id)"
543-
- name: pyxis_url
544-
value: "$(tasks.set-env.results.pyxis_url)"
545-
- name: pyxis_ssl_secret_name
546-
value: "$(params.pyxis_ssl_secret_name)"
547-
- name: pyxis_ssl_cert_secret_key
548-
value: "$(params.pyxis_ssl_cert_secret_key)"
549-
- name: pyxis_ssl_key_secret_key
550-
value: "$(params.pyxis_ssl_key_secret_key)"
551-
- name: connect_registry
552-
value: "$(tasks.set-env.results.connect_registry)"
553554

554555
finally:
555556

0 commit comments

Comments
 (0)