From fb5e1c1017ead9893bea4333f461f42b5d4a9bc5 Mon Sep 17 00:00:00 2001 From: Geoff Hackett Date: Mon, 4 Dec 2023 14:46:20 -0500 Subject: [PATCH 1/8] pr test --- .buildkite/annotation.md | 3 --- .buildkite/generate-moar-steps.sh | 15 +++++++++++++++ .buildkite/pipeline.yml | 13 +++++++------ README.md | 1 + 4 files changed, 23 insertions(+), 9 deletions(-) delete mode 100644 .buildkite/annotation.md create mode 100755 .buildkite/generate-moar-steps.sh diff --git a/.buildkite/annotation.md b/.buildkite/annotation.md deleted file mode 100644 index 6377d630..00000000 --- a/.buildkite/annotation.md +++ /dev/null @@ -1,3 +0,0 @@ -✨ **You've run a build!** ✨ - -Ready for the next adventure? Create a pipeline for your own code. See [the docs](https://buildkite.com/docs/pipelines/create-your-own) to learn more. \ No newline at end of file diff --git a/.buildkite/generate-moar-steps.sh b/.buildkite/generate-moar-steps.sh new file mode 100755 index 00000000..0b0774ab --- /dev/null +++ b/.buildkite/generate-moar-steps.sh @@ -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 diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index bd3cb8a5..515be88a 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,4 +1,8 @@ steps: + # - label: "language check" + # command: echo "Watch your damn launguage!" | buildkite-agent annotate --style "warning" + # if: build.message =~ /.*fuck.*/ + - label: ":construction_worker: Build" command: echo "Build the rocket" key: build @@ -8,9 +12,6 @@ steps: key: test depends_on: build - - label: ":rocket: Deploy" - command: | - echo "Launch the rocket" - cat .buildkite/annotation.md | buildkite-agent annotate --style "success" - key: deploy - depends_on: test + # - label: "Dynamic Last Step" + # command: .buildkite/generate-moar-steps.sh | buildkite-agent pipeline upload + # key: deploy diff --git a/README.md b/README.md index 9e80f546..a322ab8b 100644 --- a/README.md +++ b/README.md @@ -15,3 +15,4 @@ With Buildkite setup, you can quickly create a new pipeline by selecting **Add t ## License See [LICENSE](LICENSE) (MIT) + From 893baf5b2171651223548f9d001ec40f31130fca Mon Sep 17 00:00:00 2001 From: Geoff Hackett Date: Wed, 13 Mar 2024 09:31:18 +0000 Subject: [PATCH 2/8] 1 docker thing --- .buildkite/pipeline.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 515be88a..a5844000 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,7 +1,11 @@ steps: - # - label: "language check" - # command: echo "Watch your damn launguage!" | buildkite-agent annotate --style "warning" - # if: build.message =~ /.*fuck.*/ + 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" @@ -12,6 +16,6 @@ steps: key: test depends_on: build - # - label: "Dynamic Last Step" - # command: .buildkite/generate-moar-steps.sh | buildkite-agent pipeline upload - # key: deploy + - label: "Dynamic Last Step" + command: .buildkite/generate-moar-steps.sh | buildkite-agent pipeline upload + key: deploy From 7d02b9c8e8612bc4d8af16b2da14a1f9678cc4c2 Mon Sep 17 00:00:00 2001 From: Geoff Hackett Date: Wed, 13 Mar 2024 09:42:41 +0000 Subject: [PATCH 3/8] grr --- .buildkite/pipeline.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index a5844000..1af11da7 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -3,9 +3,7 @@ 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" From e59329674054206ff2032bec51aa865707faacd8 Mon Sep 17 00:00:00 2001 From: Geoff Hackett Date: Wed, 13 Mar 2024 09:44:39 +0000 Subject: [PATCH 4/8] ohhh --- .buildkite/pipeline.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 1af11da7..d1a6bbae 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,9 +1,10 @@ steps: - 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" From e9bef75e79a073fd3d48e47bc846b9dc37f8cf97 Mon Sep 17 00:00:00 2001 From: Geoff Hackett Date: Wed, 13 Mar 2024 09:45:29 +0000 Subject: [PATCH 5/8] nice --- .buildkite/pipeline.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index d1a6bbae..1927bb93 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -9,12 +9,21 @@ steps: - 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: "Dynamic Last Step" command: .buildkite/generate-moar-steps.sh | buildkite-agent pipeline upload key: deploy + plugins: + - docker#v5.10.0: + image: "artifactory.build.ue1.snooguts.net/reddit-docker-prod/android-dangerjs:2.0.0" From d91aab275dec3291df9167a6e2d7c05a1eec6b78 Mon Sep 17 00:00:00 2001 From: Geoff Hackett Date: Wed, 13 Mar 2024 09:46:49 +0000 Subject: [PATCH 6/8] try a diff image --- .buildkite/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 1927bb93..6feb396d 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -11,7 +11,7 @@ steps: key: build plugins: - docker#v5.10.0: - image: "artifactory.build.ue1.snooguts.net/reddit-docker-prod/android-dangerjs:2.0.0" + image: "golang:1.11" - label: ":white_check_mark: Test" command: echo "Test the rocket" From c05cbd8419aeca69303d14e63f16a9e319d8e288 Mon Sep 17 00:00:00 2001 From: Geoff Hackett Date: Wed, 13 Mar 2024 10:00:17 +0000 Subject: [PATCH 7/8] fix --- .buildkite/pipeline.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 6feb396d..27a878fd 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -11,7 +11,7 @@ steps: key: build plugins: - docker#v5.10.0: - image: "golang:1.11" + image: "artifactory.build.ue1.snooguts.net/reddit-docker-prod/android-dangerjs:2.0.0" - label: ":white_check_mark: Test" command: echo "Test the rocket" @@ -24,6 +24,3 @@ steps: - label: "Dynamic Last Step" command: .buildkite/generate-moar-steps.sh | buildkite-agent pipeline upload key: deploy - plugins: - - docker#v5.10.0: - image: "artifactory.build.ue1.snooguts.net/reddit-docker-prod/android-dangerjs:2.0.0" From a420db08f4aab0a8f79d715f81f8fb6b27d185dc Mon Sep 17 00:00:00 2001 From: Geoff Hackett Date: Wed, 13 Mar 2024 13:49:34 +0000 Subject: [PATCH 8/8] Empty-Commit