.drainpipe_pantheon_setup_terminus: script: - !reference [.drainpipe_setup_ssh, script] - !reference [.drainpipe_setup_git, script] - echo -e "Host *.drush.in\n StrictHostKeyChecking no\n HostkeyAlgorithms +ssh-rsa\n PubkeyAcceptedAlgorithms +ssh-rsa" >> ~/.ssh/config - mkdir ~/terminus - curl -L https://github.com/pantheon-systems/terminus/releases/download/4.1.1/terminus.phar --output ~/terminus/terminus - chmod +x ~/terminus/terminus - ln -s ~/terminus/terminus /usr/local/bin/terminus - echo "$TERMINUS_PLUGINS" | while read -d, plugin || [[ -n $plugin ]]; do terminus self:plugin:install $plugin; done - | if [ -z "$TERMINUS_MACHINE_TOKEN" ]; then echo "ERROR: TERMINUS_MACHINE_TOKEN is not set. Add it as a masked CI/CD variable." exit 1 fi terminus auth:login --machine-token="$TERMINUS_MACHINE_TOKEN"