From 5cf5c531324cbbc155be9fd4f15329399f1d5cba Mon Sep 17 00:00:00 2001 From: jonaro00 <54029719+jonaro00@users.noreply.github.com> Date: Wed, 27 Mar 2024 17:55:33 +0100 Subject: [PATCH] ci: add permit key (TODO) --- .circleci/config.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index a9bed31f9..edbe5026d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -356,6 +356,9 @@ jobs: gateway-admin-key: description: "Admin API key that authorizes gateway requests to auth service, for key to jwt conversion." type: string + permit-api-key: + description: "Permit.io API key for the Permit environment that matches the current ${SHUTTLE_ENV}." + type: string steps: - checkout - set-git-tag @@ -383,6 +386,7 @@ jobs: AUTH_JWTSIGNING_PRIVATE_KEY=${<< parameters.jwt-signing-private-key >>} \ CONTROL_DB_POSTGRES_URI=${<< parameters.control-db-postgres-uri >>} \ GATEWAY_ADMIN_KEY=${<< parameters.gateway-admin-key >>} \ + PERMIT_API_KEY=${<< parameters.permit-api-key >>} \ make deploy - when: condition: @@ -748,6 +752,7 @@ workflows: jwt-signing-private-key: DEV_AUTH_JWTSIGNING_PRIVATE_KEY control-db-postgres-uri: DEV_CONTROL_DB_POSTGRES_URI gateway-admin-key: DEV_GATEWAY_ADMIN_KEY + permit-api-key: PERMIT_API_KEY # TODO: switch to staging key requires: - build-and-push-unstable - approve-deploy-images-unstable @@ -832,6 +837,7 @@ workflows: jwt-signing-private-key: PROD_AUTH_JWTSIGNING_PRIVATE_KEY control-db-postgres-uri: PROD_CONTROL_DB_POSTGRES_URI gateway-admin-key: PROD_GATEWAY_ADMIN_KEY + permit-api-key: PROD_PERMIT_API_KEY ssh-fingerprint: 6a:c5:33:fe:5b:c9:06:df:99:64:ca:17:0d:32:18:2e ssh-config-script: production-ssh-config.sh ssh-host: shuttle.prod.internal