Skip to content

Commit 950ef87

Browse files
committed
skip release as well in backend/frontent.yml when triggered from a tag push
clean TAG using pep440 filter in metadata-action, don't insert it as raw.
1 parent 50ef3f3 commit 950ef87

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/backend.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ jobs:
129129
130130
release:
131131
runs-on: ubuntu-latest
132+
if: ${{ github.ref == 'refs/heads/main' }}
132133
needs:
133134
- meta
134135
- black

.github/workflows/deploy-tag-release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ jobs:
6767
latest=false
6868
tags: |
6969
type=ref,event=branch
70-
type=pep440,pattern={{version}}
71-
type=raw,value=$${{ needs.config.outputs.TAG }}
70+
type=pep440,pattern={{version}},value=$${{ needs.config.outputs.TAG }}
7271
type=sha
7372
7473
- name: Set up Docker Buildx
@@ -110,8 +109,7 @@ jobs:
110109
latest=false
111110
tags: |
112111
type=ref,event=branch
113-
type=pep440,pattern={{version}}
114-
type=raw,value=$${{ needs.config.outputs.TAG }}
112+
type=pep440,pattern={{version}},value=$${{ needs.config.outputs.TAG }}
115113
type=sha
116114
117115
- name: Set up Docker Buildx

.github/workflows/frontend.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
105105
release:
106106
runs-on: ubuntu-latest
107+
if: ${{ github.ref == 'refs/heads/main' }}
107108
needs:
108109
- meta
109110
- code-analysis

0 commit comments

Comments
 (0)