From 6ed7bda678662c71135606e06b0a1ed264241b21 Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Sun, 6 Dec 2020 22:57:43 -0500 Subject: [PATCH] fix tags.tfvars pathname --- .github/workflows/deploy.yml | 6 +++++- terraform/variables.tf | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2f288be..945765f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -129,7 +129,11 @@ jobs: - name: Write *.auto.tfvars.json files working-directory: ./terraform run: | - echo '{"ui_tag": "${{needs.docker_sync.outputs.ui_tag}}", "bot_tag": "${{needs.docker_sync.outputs.bot_tag}}", "api_path_to_worker": "./worker-dist/backend-worker.js"}' | jq . | tee tags.tfvars.auto.json + echo \ + '{"ui_tag": "${{needs.docker_sync.outputs.ui_tag}}", "bot_tag": "${{needs.docker_sync.outputs.bot_tag}}", "api_path_to_worker": "./worker-dist/backend-worker.js"}' \ + | jq . \ + | tee tags.auto.tfvars.json + echo ${SECRET_TFVARS} > secrets.auto.tfvars.json env: SECRET_TFVARS: ${{ steps.secrets.outputs.secretJSON }} diff --git a/terraform/variables.tf b/terraform/variables.tf index 8f700e2..5158b72 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -43,7 +43,7 @@ variable "api_public_uri" { variable "api_path_to_worker" { type = string description = "Path to worker JS, relative to this file/terraform folder." - default = "../worker/script.js" + default = "worker-dist/backend-worker.js" } variable "root_users" {