Skip to content

Instantly share code, notes, and snippets.

@jayco

jayco/pipeline.yml

Created Jul 9, 2020
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@jayco 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
You can’t perform that action at this time.