Skip to content

Commit e186939

Browse files
author
Harmanpreet Kaur
committed
edit 5
1 parent 4a0e343 commit e186939

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docker-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ jobs:
4444
- name: Determine Tag Name Based on Branch
4545
id: determine_tag
4646
run: |
47-
if [[ "${{ github.ref_name }}" == "main" || "${{ github.head_ref }}" == "main" ]]; then
47+
if [[ "${{ github.ref_name }}" == "main" ]]; then
4848
echo "tagname=latest" >> $GITHUB_OUTPUT
49-
elif [[ "${{ github.ref_name }}" == "dev" || "${{ github.head_ref }}" == "dev" ]]; then
49+
elif [[ "${{ github.ref_name }}" == "dev" ]]; then
5050
echo "tagname=dev" >> $GITHUB_OUTPUT
51-
elif [[ "${{ github.ref_name }}" == "demo" || "${{ github.head_ref }}" == "demo" ]]; then
51+
elif [[ "${{ github.ref_name }}" == "demo"]]; then
5252
echo "tagname=demo" >> $GITHUB_OUTPUT
5353
else
5454
echo "tagname=default" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)