-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add config file redo * add new workflow * PR review
- Loading branch information
Gita Vahdatinia
authored
Nov 22, 2022
1 parent
7d7fe9e
commit bf25050
Showing
7 changed files
with
105 additions
and
129 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
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,72 @@ | ||
version: '2.1' | ||
orbs: | ||
utils: coda/utils@dev:<<pipeline.git.revision>> | ||
orb-tools: circleci/orb-tools@11.1 | ||
bats: circleci/bats@1.0 | ||
|
||
default_build_environment: &default_build_environment | ||
docker: | ||
- image: cimg/base:stable | ||
auth: | ||
username: codainternaltools | ||
password: $DOCKERHUB_PASSWORD | ||
|
||
parameters: | ||
circleci-user: | ||
description: The user who published orb changes | ||
type: string | ||
default: '' | ||
|
||
commands: | ||
bootstrap_pipeline_circleci_user: | ||
steps: | ||
- run: | ||
name: Initialize CIRCLE_USERNAME from pipeline | ||
command: | | ||
echo "export CIRCLE_USERNAME=<< pipeline.parameters.circleci-user >>" >> $BASH_ENV | ||
source $BASH_ENV | ||
jobs: | ||
integration-test-notify: | ||
<<: *default_build_environment | ||
steps: | ||
- checkout | ||
- utils/notify: | ||
on_success: true | ||
|
||
integration-test-slack: | ||
<<: *default_build_environment | ||
steps: | ||
- checkout | ||
- bootstrap_pipeline_circleci_user | ||
- utils/slack-notify-waiting-for-approval: | ||
slack_bot_token: ${SLACK_ACCESS_TOKEN} | ||
|
||
integration-test-cancel-older-jobs: | ||
<<: *default_build_environment | ||
steps: | ||
- checkout | ||
- utils/cancel-older-awaiting-approvals | ||
|
||
workflows: | ||
test-deploy: | ||
jobs: | ||
- integration-test-notify: | ||
context: | ||
- dockerhub | ||
- orb-publishing | ||
- util | ||
- ops-genie | ||
- integration-test-slack: | ||
context: | ||
- dockerhub | ||
- orb-publishing | ||
- util | ||
- slack | ||
- utils/cancel-older-awaiting-approvals: | ||
context: | ||
- dockerhub | ||
- orb-publishing | ||
- util | ||
- ops-genie | ||
|
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,21 +1,6 @@ | ||
<!--- | ||
Must include [semver:<type>] in PR title in order to publish new version | ||
--> | ||
|
||
**SEMVER Update Type:** | ||
- [ ] Major | ||
- [ ] Minor | ||
- [ ] Patch | ||
|
||
## Description: | ||
|
||
<!--- | ||
Describe your changes in detail, preferably in an imperative mood, | ||
i.e., "add `commandA` to `jobB`" | ||
--> | ||
|
||
## Motivation: | ||
|
||
<!--- | ||
Share any open issues this PR references or otherwise describe the motivation to submit this pull request. | ||
--> |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
version: 2.1 | ||
|
||
description: > | ||
Utility orb for Coda | ||
Allows for: | ||
- Push alerts to opsgenie | ||
- Push Slack notifications | ||
- Cancel older CI alerts waiting for approval | ||
Utility orb for Coda Allows for: - Push alerts to opsgenie - Push Slack | ||
notifications - Cancel older CI alerts waiting for approval | ||
display: | ||
source_url: "https://github.com/coda/circleci-utils" | ||
source_url: 'https://github.com/coda/circleci-utils' | ||
|
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