Skip to content

Commit 379162a

Browse files
author
Harmanpreet Kaur
committed
edit 11
1 parent fdcec1e commit 379162a

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/docker-build.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,16 @@ jobs:
4848
- name: Determine Tag Name Based on Branch
4949
id: determine_tag
5050
run: |
51-
if [[ "${{ github.ref_name }}" == "main" ]]; then
52-
echo "tagname=${{ secrets.ACR_LOGIN_SERVER }}/km-app:latest" >> $GITHUB_OUTPUT
53-
elif [[ "${{ github.ref_name }}" == "dev" ]]; then
54-
echo "tagname=${{ secrets.ACR_LOGIN_SERVER }}/km-app:dev" >> $GITHUB_OUTPUT
55-
elif [[ "${{ github.ref_name }}" == "demo" ]]; then
56-
echo "tagname=${{ secrets.ACR_LOGIN_SERVER }}/km-app:demo" >> $GITHUB_OUTPUT
57-
else
58-
echo "tagname=${{ secrets.ACR_LOGIN_SERVER }}/km-app:default" >> $GITHUB_OUTPUT
59-
fi
51+
if [[ "${{ github.ref_name }}" == "main" ]]; then
52+
echo "tagname=latest" >> $GITHUB_OUTPUT
53+
elif [[ "${{ github.ref_name }}" == "dev" ]]; then
54+
echo "tagname=dev" >> $GITHUB_OUTPUT
55+
elif [[ "${{ github.ref_name }}" == "demo" ]]; then
56+
echo "tagname=demo" >> $GITHUB_OUTPUT
57+
else
58+
echo "tagname=default" >> $GITHUB_OUTPUT
59+
60+
fi
6061
- name: Build and Push Docker Image for WebApp
6162
uses: docker/build-push-action@v6
6263
with:
@@ -74,8 +75,8 @@ jobs:
7475
file: ./AzureFunctions/km-rag-function/Dockerfile
7576
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' }}
7677
tags: |
77-
${{ steps.determine_tag.outputs.tagname }}
78-
${{ steps.determine_tag.outputs.tagname }}_${{ steps.date.outputs.date }}_${{ github.run_number }}
78+
${{ secrets.ACR_LOGIN_SERVER }}/km-rag-function:${{ steps.determine_tag.outputs.tagname }}
79+
${{ secrets.ACR_LOGIN_SERVER }}/km-rag-function:${{ steps.determine_tag.outputs.tagname }}_${{ steps.date.outputs.date }}_${{ github.run_number }}
7980
8081
- name: Build and Push Docker Image for km-charts-function
8182
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)