Skip to content

Commit c80268a

Browse files
authored
fix: image retags and concurrency (#84)
1 parent 5253b17 commit c80268a

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/workflows/merge.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Merge
22

3+
concurrency:
4+
group: main
5+
cancel-in-progress: false
6+
# This concurrency group ensures that only one workflow runs at a time for the main branch.
37
on:
48
push:
59
branches: [main]
@@ -47,12 +51,15 @@ jobs:
4751
name: Retag Images Dev
4852
needs: [deploy_stack_dev, vars]
4953
runs-on: ubuntu-24.04
54+
strategy:
55+
matrix:
56+
package: [backend, migrations, frontend]
5057
steps:
5158
- name: retag
5259
uses: shrink/actions-docker-registry-tag@f04afd0559f66b288586792eb150f45136a927fa # v4
5360
with:
5461
registry: ghcr.io
55-
repository: ${{ github.repository }}
62+
repository: ${{ github.repository }}/${{ matrix.package }}
5663
target: ${{ needs.vars.outputs.pr }}
5764
tags: |
5865
dev
@@ -77,12 +84,15 @@ jobs:
7784
name: Retag Images Test
7885
needs: [deploy_stack_test, vars]
7986
runs-on: ubuntu-24.04
87+
strategy:
88+
matrix:
89+
package: [backend, migrations, frontend]
8090
steps:
8191
- name: retag
8292
uses: shrink/actions-docker-registry-tag@f04afd0559f66b288586792eb150f45136a927fa # v4
8393
with:
8494
registry: ghcr.io
85-
repository: ${{ github.repository }}
95+
repository: ${{ github.repository }}/${{ matrix.package }}
8696
target: ${{ needs.vars.outputs.pr }}
8797
tags: |
8898
test

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: PROD
22
on:
33
workflow_dispatch:
4-
4+
concurrency:
5+
group: main
6+
cancel-in-progress: false
7+
# This concurrency group ensures that only one workflow runs at a time for the main branch.
58
permissions:
69
id-token: write # This is required for requesting the JWT
710
contents: write # This is required for actions/checkout
@@ -30,12 +33,15 @@ jobs:
3033
name: Retag Images
3134
needs: [vars]
3235
runs-on: ubuntu-24.04
36+
strategy:
37+
matrix:
38+
package: [backend, migrations, frontend]
3339
steps:
3440
- name: retag
3541
uses: shrink/actions-docker-registry-tag@f04afd0559f66b288586792eb150f45136a927fa # v4
3642
with:
3743
registry: ghcr.io
38-
repository: ${{ github.repository }}
44+
repository: ${{ github.repository }}/${{ matrix.package }}
3945
target: test # this is the tag of the containers to deploy
4046
tags: |
4147
prod

0 commit comments

Comments
 (0)