From 0de1781671471e5ada9c747acfa12bf1b9bc8e56 Mon Sep 17 00:00:00 2001 From: Yugandharkumar Date: Tue, 20 Feb 2024 13:32:19 +0530 Subject: [PATCH] Update rosco-oes.yml --- .github/workflows/rosco-oes.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rosco-oes.yml b/.github/workflows/rosco-oes.yml index 7fa4e0c52..c1913be88 100644 --- a/.github/workflows/rosco-oes.yml +++ b/.github/workflows/rosco-oes.yml @@ -30,7 +30,11 @@ jobs: id: build_variables run: | echo ::set-output name=REPO::ubi8-rosco-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$(date --utc +'%-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 @@ -60,7 +64,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: dockerBuildpushdev uses: docker/build-push-action@v2 with: @@ -72,4 +77,5 @@ 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" +