mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[CI] Prevent race conditions with appropriate deployment steps (#941)
If we have multiple builds to master that intend to deploy AUR packages or documentation, we must ensure that the jobs are locked and executed sequentially, not simultaneously. If they were to run simultaneously this has the ability to cause a race condition when attempting to commit the respective steps.
This commit is contained in:
parent
c9efae05ad
commit
f781d63b2c
|
@ -61,11 +61,15 @@ steps:
|
|||
|
||||
- label: ":linux: Deploy AUR"
|
||||
command: ".buildkite/steps/aurpackages.sh | buildkite-agent pipeline upload"
|
||||
concurrency: 1
|
||||
concurrency_group: "aur"
|
||||
depends_on: ~
|
||||
if: build.tag != null || build.branch == "master" && build.env("CI_BYPASS") != "true"
|
||||
|
||||
- label: ":book: Deploy Documentation"
|
||||
command: "syncdoc.sh"
|
||||
concurrency: 1
|
||||
concurrency_group: "documentation"
|
||||
depends_on: ~
|
||||
agents:
|
||||
upload: "fast"
|
||||
|
|
Loading…
Reference in New Issue
Block a user