From b1fdefe722720f0800572a17d3b1f656cb23cbcf Mon Sep 17 00:00:00 2001 From: Zack Siri Date: Wed, 19 Jun 2024 20:24:10 +0700 Subject: [PATCH] Setup cloak key in ci --- .github/workflows/ci.yml | 1 + config/runtime.exs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b4e659..ac86d32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,3 +151,4 @@ jobs: POSTGRES_PASSWORD: postgres POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }} DEFAULT_CDN_HOST: some.domain.com + POLAR_CLOAK_KEY: ${{secrets.POLAR_CLOAK_KEY}} diff --git a/config/runtime.exs b/config/runtime.exs index f0d2140..20327da 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -37,7 +37,7 @@ config :polar, Polar.Assets, cloak_key = System.get_env("CLOAK_KEY") || System.get_env("POLAR_CLOAK_KEY") || raise """ - environment variable CLOAK_KEY or INSTELLAR_CLOAK_KEY is missing. + environment variable CLOAK_KEY or POLAR_CLOAK_KEY is missing. You can generate one using 32 |> :crypto.strong_rand_bytes() |> Base.encode64() """