We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35d837f commit 894ad38Copy full SHA for 894ad38
1 file changed
.github/workflows/docker-build-and-push.yml
@@ -49,7 +49,16 @@ jobs:
49
50
- name: Determine Tag Name Based on Branch
51
id: determine_tag
52
- run: echo "tagname=${{ github.ref_name == 'main' && 'latest' || github.ref_name == 'dev' && 'dev' || github.ref_name == 'demo' && 'demo' || github.head_ref || 'default' }}" >> $GITHUB_OUTPUT
+ run: |
53
+ if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
54
+ echo "tagname=latest" >> $GITHUB_ENV
55
+ elif [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then
56
+ echo "tagname=dev" >> $GITHUB_ENV
57
+ elif [[ "${{ github.ref }}" == "refs/heads/demo" ]]; then
58
+ echo "tagname=demo" >> $GITHUB_ENV
59
+ else
60
+ echo "tagnames=pullrequest-ignore" >> $GITHUB_ENV
61
+ fi
62
63
- name: Build Docker Image and optionally push
64
uses: docker/build-push-action@v6
0 commit comments