Skip to content

Commit

Permalink
version add
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeetkaurav1st committed Nov 30, 2023
1 parent adbcb1f commit 5d1e805
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 5d1e805

Please sign in to comment.