Skip to content

Commit f112fd4

Browse files
authored
fix: docker image push concurrency (#2249)
* fix: docker image push * fix: docker image push concurrency
1 parent 3fc2968 commit f112fd4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/push-images.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- master
77
workflow_dispatch:
88

9+
# retagging must wait for a previous build to finish pushing
10+
concurrency:
11+
group: push-images
12+
913
env:
1014
IMAGE_NAME: pypsa/eur-dev-env
1115

@@ -43,7 +47,7 @@ jobs:
4347
fi
4448
4549
- name: 'Add SHA tag to existing image' # when rebuild is not needed
46-
if: env.hash_last_changed != github.sha
50+
if: env.hash_last_changed != github.sha && github.event_name != 'workflow_dispatch'
4751
run: |-
4852
docker pull ghcr.io/${{ env.IMAGE_NAME }}:${{ env.hash_last_changed }}
4953
docker tag ghcr.io/${{ env.IMAGE_NAME }}:${{ env.hash_last_changed }} ghcr.io/${{ env.IMAGE_NAME }}:${{ github.sha }}

0 commit comments

Comments
 (0)