Skip to content

Commit

Permalink
Merge pull request #164 from palantirnet/deploy-to-pantheon-multidevs
Browse files Browse the repository at this point in the history
Add a snippet to deploy branches named like 'multidev-*' to Pantheon
  • Loading branch information
becw authored Nov 25, 2020
2 parents 99d6838 + c495fe1 commit 7989c78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion defaults/install/.circleci/deploy-pantheon.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# only:
# - develop
# - master
# - /multidev-.*/

deploy:
working_directory: ~/project
Expand Down Expand Up @@ -67,4 +68,7 @@
command: chmod u+w web/sites/default
- run:
name: Build and deploy an artifact
command: vendor/bin/phing artifact -Dpush=y -Dartifact.prefix=''
command: |
# Shorten multidev branch names from 'multidev-foo' to 'foo', max 11 characters
ARTIFACT_BRANCH=$(echo ${CIRCLE_BRANCH} | sed -E 's/^(multidev-)?(.{1,11}).*/\2/')
vendor/bin/phing artifact -Dartifact.result=push -Dartifact.git.remote_branch=${ARTIFACT_BRANCH}

0 comments on commit 7989c78

Please sign in to comment.