Skip to content

Commit f626363

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

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/docker-build.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,16 @@ jobs:
4444
- name: Determine Tag Name Based on Branch
4545
id: determine_tag
4646
run: |
47-
if [[ "${{ github.ref_name }}" == "main" ]]; then
48-
echo "tagname=latest" >> $GITHUB_OUTPUT
49-
elif [[ "${{ github.ref_name }}" == "dev" ]]; then
50-
echo "tagname=dev" >> $GITHUB_OUTPUT
51-
elif [[ "${{ github.ref_name }}" == "demo"]]; then
52-
echo "tagname=demo" >> $GITHUB_OUTPUT
53-
else
54-
echo "tagname=default" >> $GITHUB_OUTPUT
55-
fi
56-
- name: Print the Tag Name
57-
run: echo "The determined tag name is ${{ steps.determine_tag.outputs.tagname }}"
58-
47+
if [[ "${{ github.ref_name }}" == "main" ]]; then
48+
echo "tagname=latest" >> $GITHUB_OUTPUT
49+
elif [[ "${{ github.ref_name }}" == "dev" ]]; then
50+
echo "tagname=dev" >> $GITHUB_OUTPUT
51+
elif [[ "${{ github.ref_name }}" == "demo" ]]; then
52+
echo "tagname=demo" >> $GITHUB_OUTPUT
53+
else
54+
echo "tagname=default" >> $GITHUB_OUTPUT
55+
56+
fi
5957
- name: Build and Push Docker Image for WebApp
6058
uses: docker/build-push-action@v6
6159
with:
@@ -64,7 +62,7 @@ jobs:
6462
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' }}
6563
tags: |
6664
${{ secrets.ACR_LOGIN_SERVER }}/km-app:${{ steps.determine_tag.outputs.tagname }}
67-
echo "The login server is ${{ secrets.ACR_LOGIN_SERVER }}"
65+
echo "acr_login_server=${{ secrets.ACR_LOGIN_SERVER }}"
6866
${{ secrets.ACR_LOGIN_SERVER }}/km-app:${{ steps.determine_tag.outputs.tagname }}_${{ steps.date.outputs.date }}_${{ github.run_number }}
6967
7068
- name: Build and Push Docker Image for km-rag-function

0 commit comments

Comments
 (0)