Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Use Terminus CLU (#299)
Browse files Browse the repository at this point in the history
* Use Terminus CLU for CircleCI
* Use Terminus CLU for GitLab
* Exit on errors for BitBucket CLU job
  • Loading branch information
ataylorme authored Oct 25, 2019
1 parent 200169a commit 5073f9f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,13 @@ jobs:
name: setup-environment-vars
command: /build-tools-ci/scripts/set-environment

- run:
name: Authenticate with Terminus
command: terminus -n auth:login --machine-token="$TERMINUS_TOKEN"

- run:
name: run composer lock updater
command: set -e && clu https://${GITHUB_TOKEN}:[email protected]/${CI_PROJECT_USERNAME}/${CI_PROJECT_REPONAME}.git | sed -e "s/${GITHUB_TOKEN}/[REDACTED]/g"
command: set -e && terminus project:clu $TERMINUS_SITE

workflows:
version: 2
Expand Down
8 changes: 8 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ stages:
- visual-test
- behat-test
- cleanup
- updates

before_script:
- export PATH="$PATH:$CI_PROJECT_DIR/.ci/scripts"
Expand Down Expand Up @@ -140,3 +141,10 @@ test:behat:cleanup:
- master
dependencies:
- test:behat

schedule:composer:update:
stage: updates
script:
- set -e && terminus project:clu $TERMINUS_SITE
only:
- schedules
2 changes: 1 addition & 1 deletion bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ pipelines:
- export CI_PROJECT_NAME=$BITBUCKET_REPO_FULL_NAME && echo $CI_PROJECT_NAME
- /build-tools-ci/scripts/set-environment
- terminus -n auth:login --machine-token="$TERMINUS_TOKEN"
- terminus project:clu $TERMINUS_SITE
- set -e && terminus project:clu $TERMINUS_SITE

0 comments on commit 5073f9f

Please sign in to comment.