Skip to content

Commit 7bbf999

Browse files
committed
chore: Consolidate release action again
1 parent 598cbe4 commit 7bbf999

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/build-and-push.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ jobs:
3838
${{steps.login-ecr.outputs.registry}}/rambler
3939
# generate Docker tags based on the following events/attributes
4040
tags: |
41-
type=semver,pattern={{version}}
4241
type=semver,pattern={{major}}.{{minor}}.{{patch}}
43-
type=semver,pattern={{major}}.{{minor}}
44-
type=semver,pattern={{major}}
4542
4643
- name: set up docker buildx
4744
uses: docker/setup-buildx-action@v3

.github/workflows/release.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ on:
66
- "v*.*.*"
77

88
jobs:
9-
release-dev:
10-
uses: ./.github/workflows/build-and-push.yml
11-
with:
12-
ecr-role: arn:aws:iam::542218630570:role/git-ops-ecr
13-
release-prod:
14-
uses: ./.github/workflows/build-and-push.yml
15-
with:
16-
ecr-role: arn:aws:iam::757190845455:role/git-ops-ecr
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
13+
steps:
14+
- name: dev
15+
uses: ./.github/workflows/build-and-push.yml
16+
with:
17+
ecr-role: arn:aws:iam::542218630570:role/git-ops-ecr
18+
- name: prod
19+
uses: ./.github/workflows/build-and-push.yml
20+
with:
21+
ecr-role: arn:aws:iam::757190845455:role/git-ops-ecr

0 commit comments

Comments
 (0)