Skip to content

Commit

Permalink
fixup! fixup! fixup! init
Browse files Browse the repository at this point in the history
  • Loading branch information
elchead committed Dec 20, 2023
1 parent 8fa5cae commit d3fff2c
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/e2e-test-provider-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,19 +258,14 @@ jobs:
shell: bash
run: |
terraform init
TF_LOG=INFO terraform apply -auto-approve
- name: Apply Azure Terraform Cluster
id: apply_azure_terraform
if: inputs.cloudProvider == 'azure'
working-directory: ${{ github.workspace }}/cluster
shell: bash
run: |
terraform init
terraform apply -target module.azure_iam -auto-approve
terraform apply -target module.azure_infrastructure -auto-approve
./constellation maa-patch $(terraform output -raw maa_url)
TF_LOG=INFO terraform apply -target constellation_cluster.azure_example -auto-approve
if [[ "${{ inputs.providerVersion }}" == "azure" ]]; then
terraform apply -target module.azure_iam -auto-approve
terraform apply -target module.azure_infrastructure -auto-approve
./constellation maa-patch $(terraform output -raw maa_url)
TF_LOG=INFO terraform apply -target constellation_cluster.azure_example -auto-approve
else
TF_LOG=INFO terraform apply -auto-approve
fi
- name: Upgrade cluster
working-directory: ${{ github.workspace }}/cluster
Expand Down Expand Up @@ -313,7 +308,7 @@ jobs:
- name: Destroy Terraform Cluster
# outcome is part of the steps context (https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context)
if: always() && (steps.apply_terraform.outcome != 'skipped' || steps.apply_azure_terraform.outcome != 'skipped')
if: always() && steps.apply_terraform.outcome != 'skipped'
working-directory: ${{ github.workspace }}/cluster
shell: bash
run: |
Expand Down

0 comments on commit d3fff2c

Please sign in to comment.