From 6bc4d143b44e4d63e610d15ed93de30575a45986 Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:41:50 +0530 Subject: [PATCH] Update publishProjectFactory.yml --- .github/workflows/publishProjectFactory.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publishProjectFactory.yml b/.github/workflows/publishProjectFactory.yml index 33e224b222..3405078086 100644 --- a/.github/workflows/publishProjectFactory.yml +++ b/.github/workflows/publishProjectFactory.yml @@ -5,12 +5,14 @@ on: branches: - "console" - "master" + - "buildFixProjectFactory" paths: - 'health-services/project-factory/**' pull_request: branches: - "console" - "master" + - "buildFixProjectFactory" jobs: build: @@ -27,13 +29,15 @@ jobs: id: env run: | echo "ACTION_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV + echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV + echo "COMMIT_ID=${GITHUB_SHA: -8}" >> $GITHUB_ENV # Step 3: Build the service Docker image - name: Build the service Docker image id: docker_build working-directory: ./health-services/project-factory run: | - IMAGE_TAG=egovio/project-factory:${{ env.ACTION_NUMBER }} + IMAGE_TAG=egovio/project-factory:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }} docker build . \ --file Dockerfile \ --tag $IMAGE_TAG