Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circleci project setup #15

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2.1

jobs:
trigger-xplugeth-manifest:
docker:
- image: cimg/base:current

steps:
- 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-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:
jobs:
- trigger-xplugeth-manifest:
context: Rivet
filters:
tags:
only: /^v.*/
branches:
only: develop