Skip to content

Commit

Permalink
Update the code to use the branch module
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredfholgate committed Oct 10, 2023
1 parent f9fc441 commit 7f85202
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/end-to-end-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ matrix.terraform_version }}
terraform_wrapper: false
terraform_version: ${{ matrix.terraform_version }}
terraform_wrapper: false

- name: Setup ALZ Module Inputs
run: |
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
$Inputs["azure_devops_project_name"] = "alz-test-$uniqueId"
$Inputs["azure_devops_authentication_scheme"] = $authScheme
}
$Inputs["apply_approvers"] = ""
$Inputs["root_management_group_display_name"] = "Tenant Root Group"
$Inputs["additional_files"] = ""
Expand Down Expand Up @@ -115,8 +115,17 @@ jobs:
# Install the Module
Install-Module -Name ALZ -Force -Scope CurrentUser -Repository PSGallery
# Get the latest release version
$terraformModuleUrl = "https://github.com/Azure/alz-terraform-accelerator"
$releaseObject = Get-ALZGithubRelease -directoryForReleases "." -githubRepoUrl $terraformModuleUrl -releases "latest" -queryOnly
$release = $($releaseObject.name)
# Copy the Module into the Release Folder to ensure we are using the code in our branch
New-Item -Path "./$release" -ItemType Directory -Force
Copy-Item -Path "./" -Destination "./$release" -Recurse -Force
# Run the Module
New-ALZEnvironment -IaC "terraform" -cicd $versionControlSystem -inputs "./inputs.json" -autoApprove
New-ALZEnvironment -IaC "terraform" -cicd $versionControlSystem -inputs "./inputs.json" -autoApprove
shell: pwsh
env:
Expand Down

0 comments on commit 7f85202

Please sign in to comment.