From c8fbc0c6944e535c120b35da281ccad6701f4c5d Mon Sep 17 00:00:00 2001 From: Kyle Wuolle Date: Fri, 22 Nov 2024 15:44:46 -0800 Subject: [PATCH] Add build version to gh action --- .github/workflows/test_e2e.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_e2e.yml b/.github/workflows/test_e2e.yml index 17c7d9e22..baf5714f7 100644 --- a/.github/workflows/test_e2e.yml +++ b/.github/workflows/test_e2e.yml @@ -26,6 +26,7 @@ jobs: runs-on: ubuntu-latest outputs: version: ${{ steps.vars.outputs.version }} + cutversion: ${{ steps.vars.outputs.cutversion }} clustername: ${{ steps.vars.outputs.clustername }} pr: ${{ steps.pr.outputs.result }} steps: @@ -63,6 +64,7 @@ jobs: GIT_VERSION=$(git describe --tags --always) echo "version=${GIT_VERSION:1}" >> $GITHUB_OUTPUT echo "clustername=ci-$(date +%s | cut -b6-10)" >> $GITHUB_OUTPUT + echo "cutversion=$(echo ${GIT_VERSION:1} | sed "s/.*-//g)" >> $GITHUB_OUTPUT - name: Build and push HMC controller image uses: docker/build-push-action@v6 with: @@ -98,7 +100,7 @@ jobs: AZURE_TENANT_ID: ${{ secrets.CI_AZURE_TENANT_ID }} AZURE_CLIENT_ID: ${{ secrets.CI_AZURE_CLIENT_ID }} AZURE_CLIENT_SECRET: ${{ secrets.CI_AZURE_CLIENT_SECRET }} - BUILD_VERSION: ${{ needs.build.outputs.version }} + BUILD_VERSION: ${{ needs.build.outputs.cutversion }} steps: - name: Checkout repository uses: actions/checkout@v4