-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '3279-only-run-ci-on-non-draft' into 3334-update-packages
- Loading branch information
Showing
10 changed files
with
94 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,30 @@ | ||
# Use the latest 2.1 version of CircleCI pipeline process engine. | ||
# See: https://circleci.com/docs/2.0/configuration-reference | ||
version: 2.1 | ||
parameters: | ||
GHA_Actor: | ||
type: string | ||
default: "" | ||
GHA_Action: | ||
type: string | ||
default: "" | ||
GHA_Event: | ||
type: string | ||
default: "" | ||
GHA_Meta: | ||
type: string | ||
default: "" | ||
run_workflow_build: | ||
default: true | ||
type: boolean | ||
|
||
run_workflow_test: | ||
default: true | ||
type: boolean | ||
|
||
run_workflow_lint: | ||
default: true | ||
type: boolean | ||
|
||
orbs: | ||
node: circleci/[email protected] | ||
|
@@ -566,14 +590,15 @@ jobs: | |
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows | ||
workflows: | ||
check_canary: | ||
when: << pipeline.parameters.GHA_Action >> | ||
jobs: | ||
- build_canary: | ||
name: Check canary build | ||
filters: | ||
tags: | ||
ignore: /.*/ | ||
|
||
test: | ||
when: << pipeline.parameters.GHA_Action >> | ||
jobs: | ||
- build_webui | ||
- test: | ||
|
@@ -602,6 +627,7 @@ workflows: | |
- test | ||
|
||
python: | ||
when: << pipeline.parameters.GHA_Action >> | ||
jobs: | ||
- build_swagger: | ||
name: build-swagger-spec | ||
|
@@ -625,8 +651,9 @@ workflows: | |
branches: | ||
ignore: /.*/ # don't run on any branches - only tags | ||
!!merge <<: *build_on_branch_and_tag_push | ||
|
||
build: | ||
when: << pipeline.parameters.GHA_Action >> | ||
jobs: | ||
- build_webui: | ||
filters: *build_on_branch_and_tag_push | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
curl -X POST --header "Content-Type: application/json" --header "Circle-Token: ${CIRCLE_TOKEN}" -d "{ | ||
\"parameters\": { | ||
\"GHA_Action\": \"trigger_pipeline\" | ||
}, | ||
\"branch\": \"${BRANCH}\" | ||
}" https://circleci.com/api/v2/project/gh/bacalhau-project/bacalhau/pipeline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: CircleCI Trigger Action | ||
on: pull_request | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
trigger-circle-ci: | ||
if: | | ||
!contains(github.event.pull_request.labels.*.name, 'do-not-merge') && | ||
!contains(github.event.pull_request.labels.*.name, 'wip') | ||
runs-on: ubuntu-latest | ||
name: Pull Request Triggered CircleCI | ||
steps: | ||
- uses: LedgerHQ/actions/gh-context@main | ||
- uses: actions/checkout@v3 | ||
- name: Trigger CircleCI | ||
id: trigger-circle-ci | ||
run: | | ||
./.circleci/trigger_pipeline.sh | ||
env: | ||
CIRCLE_TOKEN: ${{ secrets.CIRCLE_CI_TOKEN }} | ||
BRANCH: ${{ github.event.pull_request.head.ref }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters