Skip to content

Instantly share code, notes, and snippets.

@jayco
Created June 25, 2020 02:22
Show Gist options
  • Save jayco/250c27df136842bcffaf617b4882f3fd to your computer and use it in GitHub Desktop.
Save jayco/250c27df136842bcffaf617b4882f3fd to your computer and use it in GitHub Desktop.
Concurrency gate example
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