Skip to content

Commit 8df8458

Browse files
authored
Merge pull request #329 from nipreps/maint/update-circle-secrets
MAINT: Rotate CircleCI secrets and setup up org-level context
2 parents 06eb538 + 0e97087 commit 8df8458

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.circleci/config.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ jobs:
114114
--exclude='freesurfer/subjects/sample-*.mgz' \
115115
--exclude='freesurfer/subjects/V1_average' \
116116
--exclude='freesurfer/trctrain'
117-
echo "b2VzdGViYW5Ac3RhbmZvcmQuZWR1CjMwNzU2CiAqQ1MzYkJ5VXMxdTVNCiBGU2kvUGJsejJxR1V3Cg==" | base64 -d > /tmp/freesurfer/license.txt
117+
pushd /tmp/freesurfer
118+
echo "${FS_LICENSE_CONTENT}" | base64 -d | sh
118119
else
119120
echo "FreeSurfer was cached."
120121
circleci step halt
@@ -365,8 +366,8 @@ jobs:
365366
name: Deploy to Docker Hub
366367
no_output_timeout: 40m
367368
command: |
368-
if [[ -n "$DOCKER_PASS" ]]; then
369-
docker login -u $DOCKER_USER -p $DOCKER_PASS
369+
if [[ -n "$DOCKER_PAT" ]]; then
370+
docker login -u $DOCKER_USER -p $DOCKER_PAT
370371
docker push nipreps/sdcflows:latest
371372
docker tag nipreps/sdcflows nipreps/sdcflows:$CIRCLE_TAG
372373
docker push nipreps/sdcflows:$CIRCLE_TAG
@@ -425,6 +426,9 @@ workflows:
425426
build_deploy:
426427
jobs:
427428
- cache_test_data:
429+
context:
430+
- nipreps-common
431+
- fs-license
428432
filters:
429433
branches:
430434
ignore:
@@ -443,6 +447,8 @@ workflows:
443447
only: /.*/
444448

445449
- test_package:
450+
context:
451+
- nipreps-common
446452
filters:
447453
branches:
448454
ignore:
@@ -452,6 +458,8 @@ workflows:
452458
only: /.*/
453459

454460
- deploy_pypi:
461+
context:
462+
- nipreps-common
455463
requires:
456464
- build_docs
457465
- test_package
@@ -463,6 +471,8 @@ workflows:
463471
only: /.*/
464472

465473
- deploy_docker:
474+
context:
475+
- nipreps-common
466476
requires:
467477
- deploy_pypi
468478
filters:

0 commit comments

Comments
 (0)