Created
June 25, 2020 02:22
-
-
Save jayco/250c27df136842bcffaf617b4882f3fd to your computer and use it in GitHub Desktop.
Concurrency gate example
This file contains hidden or 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
steps: | |
- command: echo "running unit tests" | |
key: unit-tests | |
- wait | |
###################### | |
# START OF GATE 1 # | |
###################### | |
- command: "exit 0" # start the gate region by using a no-op | |
concurrency_group: gate | |
concurrency: 1 | |
key: start-gate | |
depends_on: unit-tests | |
- command: echo "running deployment" | |
key: stage-deploy | |
depends_on: start-gate | |
- command: echo "running e2e tests" | |
depends_on: [stage-deploy] | |
parallelism: 3 | |
key: e2e | |
- command: "exit 0" # end the gate region by using a no-op | |
concurrency_group: gate | |
depends_on: [e2e] | |
key: end-gate | |
###################### | |
# END OF GATE 1 # | |
###################### | |
- wait | |
- command: echo "running changelog publication" | |
depends_on: end-gate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment