Skip to content

Commit 31d868b

Browse files
author
Michael Smit
committed
Prevent concurrent deploys.
Fixes #2423 Running multiple deploys concurrently will result in race conditions. We believe this is currently causing the gcloud app deploy command to be confused about which previous version or versions to stop, but it could cause other issues as well. This change uses a concurrency group to only permit a single deploy to execute at a time.
1 parent 97647e1 commit 31d868b

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/push.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
env:
99
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1010

11+
concurrency:
12+
group: deploy
13+
1114
jobs:
1215
Lint:
1316
runs-on: ubuntu-latest
@@ -92,4 +95,4 @@ jobs:
9295
- name: Build container
9396
run: docker build -t ghcr.io/policyengine/policyengine docker
9497
- name: Push container
95-
run: docker push ghcr.io/policyengine/policyengine
98+
run: docker push ghcr.io/policyengine/policyengine

changelog_entry.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- bump: patch
2+
changes:
3+
fixed:
4+
- github deploy actions can no longer run concurrently.

0 commit comments

Comments
 (0)