From a900b023e21406ae371a0c9d99319738b1bbac09 Mon Sep 17 00:00:00 2001 From: Austin Roberts Date: Mon, 30 Sep 2024 21:13:12 -0500 Subject: [PATCH 1/4] Add .circleci/config.yml --- .circleci/config.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..62291703e --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,31 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs +jobs: + say-hello: + # Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job + docker: + # Specify the version you desire here + # See: https://circleci.com/developer/images/image/cimg/base + - image: cimg/base:current + + # Add steps to the job + # See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps + steps: + # Checkout the code as the first step. + - checkout + - run: + name: "Say hello" + command: "echo Hello, World!" + +# Orchestrate jobs using workflows +# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows +workflows: + say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow. + # Inside the workflow, you define the jobs you want to run. + jobs: + - say-hello \ No newline at end of file From 787be943c171aeaf3e2c4115386814a1e4c0f835 Mon Sep 17 00:00:00 2001 From: Mujahid Date: Thu, 17 Oct 2024 06:54:54 +0530 Subject: [PATCH 2/4] updated with the curl call as the config file --- .circleci/config.yml | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 62291703e..843877e17 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,31 +1,31 @@ -# Use the latest 2.1 version of CircleCI pipeline process engine. -# See: https://circleci.com/docs/configuration-reference version: 2.1 -# Define a job to be invoked later in a workflow. -# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs jobs: - say-hello: - # Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub. - # See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job + trigger-xplugeth-manifest: docker: - # Specify the version you desire here - # See: https://circleci.com/developer/images/image/cimg/base - image: cimg/base:current - # Add steps to the job - # See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps steps: - # Checkout the code as the first step. - - checkout - run: - name: "Say hello" - command: "echo Hello, World!" + name: Prep paramters and the curl + command: | + test_build_cardinal_geth=true + card_geth_producer_version="$CIRCLE_TAG" + card_geth_merge_version="$CIRCLE_TAG" + + test_build_cardinal_bor=true + card_bor_producer_version="$CIRCLE_TAG" + + echo "curl with cardinal geth and cardinal-bor Parameters for develop branch in xplugeth" + curl -X POST https://circleci.com/api/v2/project/github/openrelayxyz/xplugeth-manifest/pipeline --header "Content-Type: application/json" --header "Accept: application/json" --header "Circle-Token: ${CIRCLECI_API_TOKEN}" -d '{ "branch": "circleci-project-setup", "parameters": { "test-build-cardinal-geth": '"$test_build_cardinal_geth"', "card-geth-producer-version": "'"$card_geth_producer_version"'", "card-geth-merge-version": "'"$card_geth_merge_version"'", "test-build-cardinal-bor": '"$test_build_cardinal_bor"', "card-bor-producer-version": "'"$card_bor_producer_version"'" } }' -# Orchestrate jobs using workflows -# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows workflows: - say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow. - # Inside the workflow, you define the jobs you want to run. + build_and_test_and_trigger: jobs: - - say-hello \ No newline at end of file + - trigger-xplugeth-manifest: + context: Rivet + filters: + tags: + only: /^v.*/ + branches: + only: develop \ No newline at end of file From 3f7b6eac74c2c3aa310e8d8cf6e3478cca3d7691 Mon Sep 17 00:00:00 2001 From: Mujahid Date: Sun, 20 Oct 2024 10:21:27 +0530 Subject: [PATCH 3/4] updated curl --- .circleci/config.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 843877e17..e0dbe1cb1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,11 +13,8 @@ jobs: card_geth_producer_version="$CIRCLE_TAG" card_geth_merge_version="$CIRCLE_TAG" - test_build_cardinal_bor=true - card_bor_producer_version="$CIRCLE_TAG" - echo "curl with cardinal geth and cardinal-bor Parameters for develop branch in xplugeth" - curl -X POST https://circleci.com/api/v2/project/github/openrelayxyz/xplugeth-manifest/pipeline --header "Content-Type: application/json" --header "Accept: application/json" --header "Circle-Token: ${CIRCLECI_API_TOKEN}" -d '{ "branch": "circleci-project-setup", "parameters": { "test-build-cardinal-geth": '"$test_build_cardinal_geth"', "card-geth-producer-version": "'"$card_geth_producer_version"'", "card-geth-merge-version": "'"$card_geth_merge_version"'", "test-build-cardinal-bor": '"$test_build_cardinal_bor"', "card-bor-producer-version": "'"$card_bor_producer_version"'" } }' + curl -X POST https://circleci.com/api/v2/project/github/openrelayxyz/xplugeth-manifest/pipeline --header "Content-Type: application/json" --header "Accept: application/json" --header "Circle-Token: ${CIRCLECI_API_TOKEN}" -d '{ "branch": "circleci-project-setup", "parameters": { "test-build-cardinal-geth": '"$test_build_cardinal_geth"', "card-geth-producer-version": "'"$card_geth_producer_version"'", "card-geth-merge-version": "'"$card_geth_merge_version"'" } }' workflows: build_and_test_and_trigger: From 3e6eeeaf47b5b24e1b180b66a18f2484463963eb Mon Sep 17 00:00:00 2001 From: Mujahid Date: Tue, 12 Nov 2024 06:56:23 +0530 Subject: [PATCH 4/4] [ci skip]udpated curl with git repo --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e0dbe1cb1..a69a740da 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,12 +9,13 @@ jobs: - run: name: Prep paramters and the curl command: | + card_geth_git_repo="github.com/openrelayxyz/plugeth-internal" test_build_cardinal_geth=true card_geth_producer_version="$CIRCLE_TAG" card_geth_merge_version="$CIRCLE_TAG" echo "curl with cardinal geth and cardinal-bor Parameters for develop branch in xplugeth" - curl -X POST https://circleci.com/api/v2/project/github/openrelayxyz/xplugeth-manifest/pipeline --header "Content-Type: application/json" --header "Accept: application/json" --header "Circle-Token: ${CIRCLECI_API_TOKEN}" -d '{ "branch": "circleci-project-setup", "parameters": { "test-build-cardinal-geth": '"$test_build_cardinal_geth"', "card-geth-producer-version": "'"$card_geth_producer_version"'", "card-geth-merge-version": "'"$card_geth_merge_version"'" } }' + curl -X POST https://circleci.com/api/v2/project/github/openrelayxyz/xplugeth-manifest/pipeline --header "Content-Type: application/json" --header "Accept: application/json" --header "Circle-Token: ${CIRCLECI_API_TOKEN}" -d '{ "branch": "circleci-project-setup", "parameters": { "test-build-cardinal-geth": '"$test_build_cardinal_geth"', "card-geth-git-repo": "'"$card_geth_git_repo"'", "card-geth-producer-version": "'"$card_geth_producer_version"'", "card-geth-merge-version": "'"$card_geth_merge_version"'" } }' workflows: build_and_test_and_trigger: