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
# foo service pipelines | |
./bin/create-pipeline --type pull-request --service foo-service | |
./bin/create-pipeline --type merge --service foo-service | |
./bin/create-pipeline --type deploy --service foo-service | |
# bar service pipelines | |
./bin/create-pipeline --type pull-request --service bar-service | |
./bin/create-pipeline --type merge --service bar-service | |
./bin/create-pipeline --type deploy --service bar-service |
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
{ | |
"name": "$PIPELINE_NAME", | |
"description": "Pipeline for $PIPELINE_NAME deploy", | |
"repository": "$REPOSITORY", | |
"default_branch": "master", | |
"steps": [ | |
{ | |
"type": "script", | |
"name": ":buildkite: $PIPELINE_TYPE", | |
"command": "buildkite-agent pipeline upload $SERVICE/.buildkite/$PIPELINE_TYPE.yml" |
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
#!/bin/bash | |
set -euo pipefail | |
STAGE=$1 | |
echo "Deploying foo service to $STAGE" |
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
chmod +x ./foo-service/bin/deploy |
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
steps: | |
- label: "Deploying foo service to ${STAGE}" | |
command: "./foo-service/bin/deploy ${STAGE}" |
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
steps: | |
- label: "Run sanity checks" | |
command: | |
- "echo linting" | |
- "echo testing" | |
- label: "Deploy to staging" | |
trigger: "foo-deploy" | |
build: | |
env: |
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
steps: | |
- label: "Foo service pull request" | |
command: | |
- "echo linting" | |
- "echo testing" |
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
#!/bin/bash | |
set -euo pipefail | |
echo "Running deploy for bar service" |
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
#!/bin/bash | |
set -euo pipefail | |
echo "Running tests for bar service" |
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
#!/bin/bash | |
set -euo pipefail | |
echo "Running build for bar service" |
NewerOlder