Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 0 additions & 3 deletions .buildkite/annotation.md

This file was deleted.

15 changes: 15 additions & 0 deletions .buildkite/generate-moar-steps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -e


echo "steps:"
echo " - wait" # wait for all previous steps to complete

# A deploy step only if it's the master branch otherwise do a pr temp deploy
if [[ "$BUILDKITE_BRANCH" == "main" ]]; then
echo " - command: echo Deploy!"
echo " label: \":rocket:\""
else
echo " - command: echo PR temp deploy"
echo " label: \":open-pr::rocket:\""
fi
20 changes: 15 additions & 5 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
steps:
- label: "language check"
command: echo "Watch your damn launguage!" | buildkite-agent annotate --style "warning"
if: build.message =~ /.*fuck.*/
plugins:
- docker#v5.10.0:
image: "artifactory.build.ue1.snooguts.net/reddit-docker-prod/android-dangerjs:2.0.0"

- label: ":construction_worker: Build"
command: echo "Build the rocket"
key: build
plugins:
- docker#v5.10.0:
image: "artifactory.build.ue1.snooguts.net/reddit-docker-prod/android-dangerjs:2.0.0"

- label: ":white_check_mark: Test"
command: echo "Test the rocket"
key: test
depends_on: build
plugins:
- docker#v5.10.0:
image: "artifactory.build.ue1.snooguts.net/reddit-docker-prod/android-dangerjs:2.0.0"

- label: ":rocket: Deploy"
command: |
echo "Launch the rocket"
cat .buildkite/annotation.md | buildkite-agent annotate --style "success"
- label: "Dynamic Last Step"
command: .buildkite/generate-moar-steps.sh | buildkite-agent pipeline upload
key: deploy
depends_on: test
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ With Buildkite setup, you can quickly create a new pipeline by selecting **Add t
## License

See [LICENSE](LICENSE) (MIT)