fix tags.tfvars pathname

This commit is contained in:
41666 2020-12-06 22:57:43 -05:00
parent 0e69066aad
commit 6ed7bda678
2 changed files with 6 additions and 2 deletions

View file

@ -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 }}

View file

@ -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" {