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