Skip to content

Commit

Permalink
added workflow v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Tope Emmanuel committed Sep 15, 2023
1 parent fb90f4e commit 2631299
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/actions/deploy_v2/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
shell: bash
run: |
echo ls terraform
envtolower=${{ inputs.environment }} | tr '[:upper:]' '[:lower:]'
envtolower=`echo "${{ inputs.environment }} " | awk '{ print tolower($1) }'`
tf_vars_file=terraform/aks/config/$envtolower.tfvars.json
echo " tf_vars_file is $tf_vars_file"
terraform_version=$(awk '/{/{f=/^terraform/;next}f' terraform/aks/terraform.tf | grep -o [0-9\.]*)
Expand Down Expand Up @@ -59,7 +59,8 @@ runs:
- name: Terraform init, plan & apply
if: ${{ inputs.environment }} == "review_aks"
shell: bash
run: make ci ${{ inputs.environment }}_aks terraform-plan-aks PR_NUMBER=${{ inputs.pr }}
run: |
make ci ${{ inputs.environment }}_aks terraform-plan-aks PR_NUMBER=${{ inputs.pr }}
env:
IMAGE_TAG: ${{ inputs.sha }}

Expand Down

0 comments on commit 2631299

Please sign in to comment.