Skip to content

Commit

Permalink
CD: Attempt on fixing auth keys
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Aug 17, 2021
1 parent 8266c38 commit a06b599
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@ jobs:
- name: Terraform Variables
id: tfvars
run: |
TF_VARS=$(cat <<EOF
-var environment="$ENVIRONMENT" \
-var aws_region="$AWS_DEFAULT_REGION" \
-var app_image="$CONTAINER_REPO:$GITHUB_SHA-snapshot" \
-var authorization_keys="$(echo -n $SMOOTHIE_REPO_KEYS)"
cat <<EOF >live.auto.tfvars
environment = "$ENVIRONMENT"
aws_region = "$AWS_DEFAULT_REGION"
app_image = "$CONTAINER_REPO:$GITHUB_SHA-snapshot"
authorization_keys = <<EOT
$SMOOTHIE_REPO_KEYS
EOT
EOF
)
TF_VARS="-var-file=live.auto.tfvars"
echo "::set-output name=vars::$TF_VARS"
- name: Terraform Format
Expand Down

0 comments on commit a06b599

Please sign in to comment.