Skip to content

Commit

Permalink
Azure: Use versions.yaml to read go version in e2e test
Browse files Browse the repository at this point in the history
Use versions.yaml to read go version in e2e test

Fixes: #1496
Signed-off-by: Kartik Joshi <[email protected]>
  • Loading branch information
kartikjoshi21 committed Oct 11, 2023
1 parent b4ec03d commit 7681c41
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/azure-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ jobs:
echo "Generated unique version for the image as: ${unique_version}"
echo "image-version=${unique_version}" >> "$GITHUB_OUTPUT"
read-properties:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Read properties from versions.yaml
run: |
go_version="$(yq '.tools.golang' versions.yaml)"
[ -n "$go_version" ]
echo "GO_VERSION=${go_version}" >> "$GITHUB_ENV"
build-podvm-image:
uses: confidential-containers/cloud-api-adaptor/.github/workflows/azure-podvm-image-build.yml@main
needs:
Expand All @@ -51,8 +62,9 @@ jobs:
- name: Set up Go environment
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: go.sum
run: echo ${{ env.GO_VERSION }}

- uses: azure/login@v1
name: 'Az CLI login'
Expand Down Expand Up @@ -96,7 +108,7 @@ jobs:
- name: Set up Go environment
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: ${{ env.GO_VERSION }}

- name: Create provisioner file
env:
Expand Down

0 comments on commit 7681c41

Please sign in to comment.