Skip to content

Commit

Permalink
Add build version to gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewuolle committed Nov 22, 2024
1 parent 8d8e530 commit c8fbc0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c8fbc0c

Please sign in to comment.