Created
July 9, 2020 00:30
-
-
Save jayco/14131acc724211c375fba87251a3049f to your computer and use it in GitHub Desktop.
Code Freeze on pipeline
This file contains 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
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'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This example is using env vars and annotations for code freezing pipelines.
You can watch it run: