Skip to content

Commit

Permalink
w
Browse files Browse the repository at this point in the history
  • Loading branch information
saliceti committed Dec 12, 2023
1 parent 2d37644 commit 706ef63
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/actions/deploy_v2/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ runs:
run: |
tf_vars_file=terraform/aks/config/${{ inputs.environment }}.tfvars.json
terraform_version=$(awk '/{/{f=/^terraform/;next}f' terraform/aks/provider.tf | grep -o [0-9\.]*)
echo "cluster=$(jq -r '.cluster' ${tf_vars_file})" >> $GITHUB_ENV
echo "aks_app_environment=$(jq -r '.environment' ${tf_vars_file})" >> $GITHUB_ENV
cluster=$(jq -r '.cluster' ${tf_vars_file})
aks_app_environment=$(jq -r '.environment' ${tf_vars_file})
echo "TERRAFORM_VERSION=$terraform_version" >> $GITHUB_ENV
echo "namespace=$(jq -r '.namespace' ${tf_vars_file})" >> $GITHUB_ENV
if [[ $cluster == 'production' ]]; then
app_hostname=getintoteachingapi-${{ env.aks_app_environment }}.teacherservices.cloud"
app_hostname=getintoteachingapi-${aks_app_environment}.teacherservices.cloud
else
app_hostname=getintoteachingapi-${{ env.aks_app_environment }}.${cluster}.teacherservices.cloud"
app_hostname=getintoteachingapi-${aks_app_environment}.${cluster}.teacherservices.cloud
fi
echo "app_hostname=${app_hostname}" >> $GITHUB_OUTPUT
echo "app_hostname=${app_hostname}"
Expand Down

0 comments on commit 706ef63

Please sign in to comment.