This file contains hidden or 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 .buildkite/diff |
This file contains hidden or 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 | |
| [ $# -lt 1 ] && { echo "argument is missing."; exit 1; } | |
| COMMIT=$1 | |
| BRANCH_POINT_COMMIT=$(git merge-base master $COMMIT) | |
| echo "diff between $COMMIT and $BRANCH_POINT_COMMIT" | |
| git --no-pager diff --name-only $COMMIT..$BRANCH_POINT_COMMIT |
This file contains hidden or 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: "Triggering pull request pipeline" | |
| plugins: | |
| chronotc/monorepo-diff#v1.1.1: | |
| diff: ".buildkite/diff ${BUILDKITE_COMMIT}" | |
| wait: false | |
| watch: | |
| - path: "foo-service" | |
| config: | |
| trigger: "foo-service-pull-request" |
This file contains hidden or 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: "Triggering merge pipeline" | |
| plugins: | |
| chronotc/monorepo-diff#v1.1.1: | |
| diff: "git diff --name-only HEAD~1" | |
| wait: false | |
| watch: | |
| - path: "foo-service" | |
| config: | |
| trigger: "foo-service-merge" |
This file contains hidden or 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: Trigger Buildkite Pipeline | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| jobs: | |
| build: | |
| name: Merge | |
| runs-on: ubuntu-latest |
This file contains hidden or 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: Trigger Buildkite Pipeline | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| - "*/*" | |
| - "!master" | |
| jobs: | |
| build: |
This file contains hidden or 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/create-pipeline --type pull-request --status-checks | |
| ./bin/create-pipeline --type merge --status-checks |
This file contains hidden or 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
| BuildkiteAgentToken=$BUILDKITE_AGENT_TOKEN | |
| SecretsBucket=buildkite-secrets-adikari | |
| InstanceType=t2.micro | |
| MinSize=0 | |
| MaxSize=3 | |
| ScaleUpAdjustment=2 | |
| ScaleDownAdjustment=-1 |
This file contains hidden or 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 merge", | |
| "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 hidden or 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 pull requests", | |
| "repository": "$REPOSITORY", | |
| "default_branch": "", | |
| "steps": [ | |
| { | |
| "type": "script", | |
| "name": ":buildkite: $PIPELINE_TYPE", | |
| "command": "buildkite-agent pipeline upload $SERVICE/.buildkite/$PIPELINE_TYPE.yml" |