From cee71b1883192a4dee1a80202146f2e6b7ccef1f Mon Sep 17 00:00:00 2001 From: Yugandharkumar Date: Tue, 20 Feb 2024 13:14:49 +0530 Subject: [PATCH] Update clouddriver-oes.yml --- .github/workflows/clouddriver-oes.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/clouddriver-oes.yml b/.github/workflows/clouddriver-oes.yml index 1b0561ee7b5..4685b83d5b0 100644 --- a/.github/workflows/clouddriver-oes.yml +++ b/.github/workflows/clouddriver-oes.yml @@ -31,7 +31,10 @@ jobs: id: build_variables run: | echo ::set-output name=REPO::ubi8-clouddriver-cve - echo ::set-output name=VERSION::"1.30.1$(date --utc +'%Y%m%d')" + #echo ::set-output name=VERSION::"1.30.1$(date --utc +'%Y%m%d')" + echo ::set-output name=VERSION::"1.30.1" + echo "::set-output name=GITHASH::$(git rev-parse --short HEAD)" + echo "::set-output name=BUILDDATE::$(date -u +"%Y%m%d%H%M")" - name: Login to Quay uses: docker/login-action@v1 # use service account flow defined at: https://github.com/docker/login-action#service-account-based-authentication-1 @@ -81,7 +84,8 @@ jobs: file: docker/ubi8/Dockerfile-fips push: true tags: | - "${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}" + "${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-${{ steps.build_variables.outputs.GITHASH }}-${{ steps.build_variables.outputs.BUILDDATE }}" + - name: dockerBuildpushjaeger uses: docker/build-push-action@v2 with: @@ -94,7 +98,9 @@ jobs: file: docker/ubi8/Dockerfile-dev push: true tags: | - "${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-dev" + "${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-${{ steps.build_variables.outputs.GITHASH }}-${{ steps.build_variables.outputs.BUILDDATE }}-dev" + + - id: get-build-name run: | imageName=${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}