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 18, 2024
1 parent c14aaf4 commit 158d841
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build_nd_deploy_to_AKS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ jobs:
name: Deploy to AKS with Terraform
runs-on: ubuntu-latest
needs: build
env:
TFVARS: ${{ secrets.TFVARS}}

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -56,7 +55,7 @@ jobs:
# allow-no-subscriptions: true

- name: Echo TFVARS
run: echo "${{ vars.TFVARS }}" > .env
run: echo "${{ secrets.TFVARS }}" > .env
- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
with:
Expand All @@ -74,7 +73,7 @@ jobs:
run: terraform validate -no-color
- name: Terraform Plan
id: plan
run: terraform plan -no-color -out=plan.tfplan -var 'docker_image=${{ secrets.DOCKER_USERNAME }}/flaskblog-app:${{ github.sha }}' -input=false -var-file=${{ secrets.TFVARS }}
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 Apply
# run: terraform apply -auto-approve

0 comments on commit 158d841

Please sign in to comment.