From 04169418c5d95f7ba5172e35af25e70db6d3a523 Mon Sep 17 00:00:00 2001 From: kekskurse <git@ekskurse.de> Date: Fri, 14 Mar 2025 12:59:35 +0100 Subject: [PATCH] chore: sql path in secret --- .woodpecker/deplyoment.yaml | 3 +++ resources/infra/scw-container.tf | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.woodpecker/deplyoment.yaml b/.woodpecker/deplyoment.yaml index e5f3d98..59ff737 100644 --- a/.woodpecker/deplyoment.yaml +++ b/.woodpecker/deplyoment.yaml @@ -18,8 +18,11 @@ steps: from_secret: sce_secret_key SCW_ACCESS_KEY: from_secret: scw_access_key + USERSTORE_SQLITE_PATH: + from_secret: userstore_sqlite_path commands: - cd resources/infra - terraform init - sed -i 's@git.keks.cloud/kekskurse/miniauth:latest@git.keks.cloud/kekskurse/miniauth:${CI_COMMIT_SHA}@g' scw-container.tf + - sed -i 's@USERSTORE_SQLITE_PATH_SED@${USERSTORE_SQLITE_PATH}@g' scw-container.tf - terraform apply -auto-approve diff --git a/resources/infra/scw-container.tf b/resources/infra/scw-container.tf index 2c24675..d40eaee 100644 --- a/resources/infra/scw-container.tf +++ b/resources/infra/scw-container.tf @@ -25,6 +25,6 @@ resource "scaleway_container" "main" { "WEB_PUBLIC_REGISTRATION" = "1" } secret_environment_variables = { - "key" = "secret" + "USERSTORE_SQLITE_PATH" = "USERSTORE_SQLITE_PATH_SED" } }