From 646d5e5e42c09247f3981ee4b86134ea4b4c79ea Mon Sep 17 00:00:00 2001 From: Alberto Vena Date: Thu, 27 Aug 2020 16:42:45 +0200 Subject: [PATCH] Use CircleCI contexts in jobs that require secrets This is a way to tell CircleCI to provide secrets defined in the Solidus Core Team context only to users that are part of that group (on GitHub) when a build is triggered. We only perform these Stoplight jobs in the master branch and only the core team has the permissions to push to master. --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5dd230cf06b..b02e9ffef01 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -150,6 +150,7 @@ workflows: - mysql_rails52 - postgres_rails_master_activestorage - stoplight/push: + context: "Solidus Core Team" project: solidus/solidus-api git_token: $STOPLIGHT_GIT_TOKEN source_dir: api/openapi @@ -158,6 +159,7 @@ workflows: requires: - persist_version - stoplight/publish: + context: "Solidus Core Team" api_token: $STOPLIGHT_API_TOKEN domain: solidus.docs.stoplight.io requires: