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: confidential-containers#1496
Signed-off-by: Kartik Joshi <[email protected]>
  • Loading branch information
kartikjoshi21 committed Oct 16, 2023
1 parent a957505 commit ef038c8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/azure-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Extract go version number
run: echo "GO_VERSION=$(yq -e '.tools.golang' versions.yaml)" >> "$GITHUB_ENV"

- 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

- uses: azure/login@v1
Expand Down Expand Up @@ -97,10 +100,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Extract go version number
run: echo "GO_VERSION=$(yq -e '.tools.golang' versions.yaml)" >> "$GITHUB_ENV"

- 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 ef038c8

Please sign in to comment.