From 5d1e8058b0dc14e108f230bcc7b8ad8c5e9a1f5c Mon Sep 17 00:00:00 2001 From: Abhijeet Kaurav Date: Thu, 30 Nov 2023 15:46:31 +0530 Subject: [PATCH] version add --- .github/workflows/build-new.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-new.yml b/.github/workflows/build-new.yml index cab3048a..25e684b3 100644 --- a/.github/workflows/build-new.yml +++ b/.github/workflows/build-new.yml @@ -40,9 +40,12 @@ jobs: with: image: ntnx/calm-dsl run: calm + - name: Read VERSION file + id: getversion + run: echo "::set-output name=version::$(cat CalmVersion)" - name: Publish docker image to jfrog-artifactory if: ${{ github.event_name == 'push' && github.repository == 'nutanix/calm-dsl' && matrix.python-version == '3.7'}} run: | docker login ${{ secrets.JFROG_REGISTRY }} -u ${{ secrets.JFROG_USERNAME }} -p ${{ secrets.JFROG_PASSWORD }} - docker tag ntnx/calm-dsl:latest ${{ secrets.JFROG_REGISTRY }}/calm-dsl/ntnx_calm_dsl:unsigned_101 - docker push ${{ secrets.JFROG_REGISTRY }}/calm-dsl/ntnx_calm_dsl:unsigned_101 + docker tag ntnx/calm-dsl:latest ${{ secrets.JFROG_REGISTRY }}/calm-dsl/calm-dsl:v${{ steps.getversion.outputs.version }} + docker push ${{ secrets.JFROG_REGISTRY }}/calm-dsl/calm-dsl:v${{ steps.getversion.outputs.version }}