Skip to content

Commit

Permalink
Update Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-GitH2 committed Feb 22, 2024
1 parent b9b9c13 commit c372175
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build_nd_deploy_to_AKS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,21 @@ jobs:
terraform_version: latest

- name: Terraform Init
run: terraform init -backend-config="storage_account_name=$STORAGE_ACCOUNT" -backend-config="container_name=$CONTAINER_NAME" -backend-config="resource_group_name=$RESOURCE_GROUP" -backend-config="access_key=$STORAGE_ACCESS_KEY"
run: terraform init -backend-config="storage_account_name=$STORAGE_ACCOUNT" -backend-config="container_name=$CONTAINER_NAME" -backend-config="resource_group_name=$RESOURCE_GROUP" -backend-config="access_key=$STORAGE_ACCESS_KEY"

- name: Terraform fmt
id: fmt
run: terraform fmt -check -recursive
continue-on-error: true

# - name: Terraform Validate
# id: validate
# run: terraform validate -no-color
- name: Terraform Validate
id: validate
if: success() || failure()
run: terraform validate -no-color

# - name: Terraform Plan
# id: plan
# run: terraform plan -var 'docker_image=${{ secrets.DOCKER_USERNAME }}/flaskblog-app:${{ github.sha }}' -input=false -var-file=./.env
# run: terraform plan -no-color -out=plan.tfplan -var="docker_image=jojodocker10/flaskblog-app:latest" -input=false --var-file=./.env
- name: Terraform Plan
id: plan
# run: terraform plan -var 'docker_image=${{ secrets.DOCKER_USERNAME }}/flaskblog-app:${{ github.sha }}' -var "resource_group_name=$RESOURCE_GROUP" -input=false -out=plan.tfplan -no-color
run: terraform plan -no-color -out=plan.tfplan -var="docker_image=jojodocker10/flaskblog-app:latest" -input=false -var "resource_group_name=$RESOURCE_GROUP"
# - name: Terraform Apply
# run: terraform apply -auto-approve

0 comments on commit c372175

Please sign in to comment.