diff --git a/.gitlab/ci/pipelines/octez_major_release_tag_test.yml b/.gitlab/ci/pipelines/octez_major_release_tag_test.yml index de1e997d7df48ef1f175a0a609bcaf9e37035902..6cc37050b20954f13574e545af4f1406622e2367 100644 --- a/.gitlab/ci/pipelines/octez_major_release_tag_test.yml +++ b/.gitlab/ci/pipelines/octez_major_release_tag_test.yml @@ -1194,3 +1194,23 @@ publish:release-page: paths: - ./index.md - index.html + +dispatch-call: + image: ${ci_image_name}/prebuild:${ci_image_tag} + stage: publish + tags: + - gcp + needs: + - oc.docker:ci:amd64 + - publish:release-page + - gitlab:release + dependencies: + - oc.docker:ci:amd64 + timeout: 60 minutes + interruptible: false + before_script: + - . ./scripts/ci/datadog_send_job_info.sh + script: + - 'curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer + ${TEZCAPITAL_GITHUB_TOKEN}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/tez-capital/tezos-macos-pipeline/actions/workflows/macos.yml/dispatches + -d ''{"ref":"main","inputs":{"version": "${CI_COMMIT_TAG}"}}''' diff --git a/.gitlab/ci/pipelines/octez_minor_release_tag_test.yml b/.gitlab/ci/pipelines/octez_minor_release_tag_test.yml index 8f420b3221ad321ee48332c0a9f3584642565de7..d04a3de61483f6da9e6b2ed0cb7dcffff61d0af1 100644 --- a/.gitlab/ci/pipelines/octez_minor_release_tag_test.yml +++ b/.gitlab/ci/pipelines/octez_minor_release_tag_test.yml @@ -978,3 +978,23 @@ publish:release-page: paths: - ./index.md - index.html + +dispatch-call: + image: ${ci_image_name}/prebuild:${ci_image_tag} + stage: publish + tags: + - gcp + needs: + - oc.docker:ci:amd64 + - publish:release-page + - gitlab:release + dependencies: + - oc.docker:ci:amd64 + timeout: 60 minutes + interruptible: false + before_script: + - . ./scripts/ci/datadog_send_job_info.sh + script: + - 'curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer + ${TEZCAPITAL_GITHUB_TOKEN}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/tez-capital/tezos-macos-pipeline/actions/workflows/macos.yml/dispatches + -d ''{"ref":"main","inputs":{"version": "${CI_COMMIT_TAG}"}}''' diff --git a/.gitlab/ci/pipelines/octez_release_tag.yml b/.gitlab/ci/pipelines/octez_release_tag.yml index 1f66baaf04a99422a728d57c4a060e083d8ca92f..27ae38dd7e96afcec5906df007c8bfe93420e6ed 100644 --- a/.gitlab/ci/pipelines/octez_release_tag.yml +++ b/.gitlab/ci/pipelines/octez_release_tag.yml @@ -958,3 +958,23 @@ publish:release-page: paths: - ./index.md - index.html + +dispatch-call: + image: ${ci_image_name}/prebuild:${ci_image_tag} + stage: publish + tags: + - gcp + needs: + - oc.docker:ci:amd64 + - publish:release-page + - gitlab:release + dependencies: + - oc.docker:ci:amd64 + timeout: 60 minutes + interruptible: false + before_script: + - . ./scripts/ci/datadog_send_job_info.sh + script: + - 'curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer + ${TEZCAPITAL_GITHUB_TOKEN}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/tez-capital/tezos-macos-pipeline/actions/workflows/macos.yml/dispatches + -d ''{"ref":"main","inputs":{"version": "${CI_COMMIT_TAG}"}}''' diff --git a/ci/bin/release_tag.ml b/ci/bin/release_tag.ml index ae781bda534b287903597e857a291bad8c710420..00d04302f56efa7f66e9ac2b1bb0808b9a29c837 100644 --- a/ci/bin/release_tag.ml +++ b/ci/bin/release_tag.ml @@ -265,6 +265,29 @@ let octez_jobs ?(test = false) ?(major = true) release_tag_pipeline_type = ~dependencies:(Dependent [Job job_docker_merge]) () in + let job_dispatch_call = + job + ~__POS__ + ~image:Images.CI.prebuild + ~stage:Stages.publish + ~description: + "A job release that triggers pipelines from other repositories after a \ + release.\n\ + For now, it triggers the release pipeline from \ + tez-capital/tezos-macos-pipeline" + ~interruptible:false + ~name:"dispatch-call" + ~dependencies: + (Dependent [Job job_release_page; Job job_gitlab_release_or_publish]) + [ + "curl -L -X POST -H \"Accept: application/vnd.github+json\" -H \ + \"Authorization: Bearer ${TEZCAPITAL_GITHUB_TOKEN}\" -H \ + \"X-GitHub-Api-Version: 2022-11-28\" \ + https://api.github.com/repos/tez-capital/tezos-macos-pipeline/actions/workflows/macos.yml/dispatches \ + -d '{\"ref\":\"main\",\"inputs\":{\"version\": \ + \"${CI_COMMIT_TAG}\"}}'"; + ] + in let job_trigger_monitoring = trigger_job ~__POS__ @@ -294,9 +317,8 @@ let octez_jobs ?(test = false) ?(major = true) release_tag_pipeline_type = else []) @ match (test, release_tag_pipeline_type) with - (* for the moment the apt repository are not official, so we do not add to the release - pipeline . *) - | false, Release_tag -> [job_opam_release (); job_release_page] + | false, Release_tag -> + [job_opam_release (); job_release_page; job_dispatch_call] | true, Release_tag -> [ (* This job normally runs in the {!Octez_latest_release} pipeline @@ -307,6 +329,7 @@ let octez_jobs ?(test = false) ?(major = true) release_tag_pipeline_type = job_promote_to_latest_test; job_opam_release ~dry_run:true (); job_release_page; + job_dispatch_call; ] | _ -> []