Skip to content

Commit

Permalink
Add new updates to pantheon deply and add debug (don't delete MD).
Browse files Browse the repository at this point in the history
  • Loading branch information
szipfel committed Apr 15, 2022
1 parent 769809d commit cfa6df8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ DEVELOP_BRANCH=develop
# git branch for dev site
REMOTE_DEVELOP_BRANCH=develop

## Branch to keep multidev (Pantheon Only)
#KEEP_BRANCH=update-ci-tools
## Branch to keep multidev (Pantheon Only) - Set to true to not delete multidevs but don't use up your quota!
KEEP_BRANCH=false
13 changes: 8 additions & 5 deletions .travis/pantheon/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ update_uuid() {
# delete files we don't want on Pantheon and copy in some that we do.
clean_artifacts() {
make_heading "...Generating site artifacts"

cp hosting/pantheon/pantheon.upstream.yml .
if [ "$PROVUS" == true ] || [ "$PANTHEON_IC" == true ]; then
cp hosting/pantheon/pantheon.upstream.yml .
else
cp hosting/pantheon/pantheon.yml .
fi
cp hosting/pantheon/settings.pantheon.php web/sites/default/
rm -rf .docksal
rm -rf web/sites/default/files
Expand Down Expand Up @@ -110,7 +113,7 @@ make_multidev() {

# delete the pantheon multidev.. good for failed events before stopping
delete_md() {
if [[ "$CURRENT_BRANCH" != "$PANTHEON_ENV" && "$KEEP_BRANCH" != "$CURRENT_BRANCH" ]]; then
if [[ "$CURRENT_BRANCH" != "$PANTHEON_ENV" && "$KEEP_BRANCH" != true ]]; then
$TERMINUS_BIN multidev:delete $PANTHEON_SITE_ID.ci-$TRAVIS_BUILD_NUMBER --delete-branch --yes
# if it fails - report the fail and
check_error "$?"
Expand Down Expand Up @@ -182,8 +185,8 @@ else
quiet_git add -f vendor/* web/* pantheon* config/*
quiet_git commit -m "Artifacts for build ci-$TRAVIS_BUILD_NUMBER"
echo "...Push to pantheon"
#git push pantheon ci-$TRAVIS_BUILD_NUMBER --force
$TERMINUS_BIN build:env:push $PANTHEON_SITE_ID.$PANTHEON_ENV
git push pantheon ci-$TRAVIS_BUILD_NUMBER --force
#$TERMINUS_BIN build:env:push $PANTHEON_SITE_ID.$PANTHEON_ENV

P_ENV="ci-$TRAVIS_BUILD_NUMBER"
#clean up / Site updates.
Expand Down

0 comments on commit cfa6df8

Please sign in to comment.