Skip to content

Instantly share code, notes, and snippets.

@jayco
Created July 9, 2020 00:30
Show Gist options
  • Save jayco/14131acc724211c375fba87251a3049f to your computer and use it in GitHub Desktop.
Save jayco/14131acc724211c375fba87251a3049f to your computer and use it in GitHub Desktop.
Code Freeze on pipeline
env:
CODE_FREEZE: true
steps:
- command: "buildkite-agent annotate 'code freeze in place' --style 'error'"
if: "build.env('CODE_FREEZE') == 'true'"
- command: "buildkite-agent pipeline upload"
label: ":pipeline:"
if: "build.env('CODE_FREEZE') == 'false'"
@jayco
Copy link
Author

jayco commented Jul 9, 2020

Screen Shot 2020-07-09 at 10 42 01 am

This example is using env vars and annotations for code freezing pipelines.

You can watch it run:
Screen Shot 2020-07-09 at 10 43 34 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment