Skip to content

Commit

Permalink
Merge pull request #34 from remixlabs/ckv/use-contexts
Browse files Browse the repository at this point in the history
use the rmx-prod-uploads CI context for the deploy key
  • Loading branch information
cvermilion authored Jan 9, 2023
2 parents 835c19b + 6c49896 commit c35b8a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2
version: 2.1
jobs:
build:
docker:
Expand All @@ -15,3 +15,9 @@ jobs:
- run: make test
- run: ci/ensure-gcloud-creds
- run: ci/upload_web

workflows:
build:
jobs:
- build:
context: rmx-prod-uploads
4 changes: 1 addition & 3 deletions ci/ensure-gcloud-creds
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ fi
#
# Put the output of the second command in the relevant environment var.
set +x
echo $RMX_DEPLOY_KEY | $B64_DECODE > ~/deploy_key.json
echo $RMX_PROD_DEPLOY_KEY | $B64_DECODE > ~/deploy_key.json
set -x

# staging
# activate service account
gcloud --project rmx-prod auth activate-service-account --key-file ~/deploy_key.json

gcloud auth list
gcloud -q auth configure-docker

0 comments on commit c35b8a4

Please sign in to comment.