From cf4c608360f0fa100e674c01a5a693c78fcdff1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 14 Oct 2020 12:00:23 +0200 Subject: [PATCH 1/2] Adding ADMIN_API_TOKEN to deployment --- deeployer.libsonnet | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deeployer.libsonnet b/deeployer.libsonnet index 74606da4..df04399a 100644 --- a/deeployer.libsonnet +++ b/deeployer.libsonnet @@ -14,7 +14,9 @@ }, "ports": [8080], "env": { - "SECRET_KEY": "tempSecretKeyNeedsToChange" + "SECRET_KEY": "tempSecretKeyNeedsToChange", + "ADMIN_API_TOKEN": env.ADMIN_API_TOKEN, + "ADMIN_API_URL": "https://admin."+url } }, "front": { From ff37e0f9b9a6ef8d230a888f7971266b0d0bc378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 14 Oct 2020 12:25:05 +0200 Subject: [PATCH 2/2] Adding ADMIN_API_TOKEN --- .github/workflows/build-and-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 7e7c9014..25d2b0cd 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -120,6 +120,7 @@ jobs: uses: thecodingmachine/deeployer@master env: KUBE_CONFIG_FILE: ${{ secrets.KUBE_CONFIG_FILE }} + ADMIN_API_TOKEN: ${{ secrets.ADMIN_API_TOKEN }} with: namespace: workadventure-${{ env.GITHUB_REF_SLUG }}