generated from SU-SWS/stanford_starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a gitpod.yml file.
- Loading branch information
Showing
1 changed file
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
github: | ||
prebuilds: | ||
master: true | ||
branches: true | ||
pullRequests: true | ||
pullRequestsFromForks: false | ||
addCheck: false | ||
addComment: false | ||
addBadge: false | ||
additionalRepositories: | ||
- url: https://github.com/SU-SWS/acsf-cardinalsites-public/ | ||
checkoutLocation: stack | ||
ports: | ||
- port: 3306 | ||
onOpen: ignore | ||
visibility: private | ||
- port: 33060 | ||
onOpen: ignore | ||
visibility: private | ||
- port: 8001 | ||
onOpen: open-browser | ||
visibility: public | ||
image: pookmish/drupal8ci:gitpod | ||
tasks: | ||
- before: > | ||
eval $(command gp env -e) && | ||
mkdir -p ~/.ssh && | ||
[[ ! -z $SSH_PUBLIC_KEY ]] && | ||
echo $SSH_PUBLIC_KEY | base64 -d > ~/.ssh/id_rsa.pub && | ||
chmod 644 ~/.ssh/id_rsa.pub && | ||
[[ ! -z $SSH_PRIVATE_KEY ]] && | ||
echo $SSH_PRIVATE_KEY | base64 -d > ~/.ssh/id_rsa && | ||
chmod 600 ~/.ssh/id_rsa && | ||
[[ ! -z $GITCONFIG ]] && | ||
echo $GITCONFIG | base64 -d > ~/.gitconfig && | ||
chmod 644 ~/.gitconfig | ||
init: > | ||
export THEME_NAME=${PWD##*/} && | ||
export PREVIEW_FULL_URL=`gp url 8001` && | ||
export PREVIEW_URL=${PREVIEW_FULL_URL#"https://"} && | ||
cd /workspace && | ||
mkdir theme && | ||
rsync -r $GITPOD_REPO_ROOT/ theme && | ||
find $GITPOD_REPO_ROOT -name . -o -prune -exec rm -rf -- {} + && | ||
rsync -r stack/ $GITPOD_REPO_ROOT/ && | ||
mkdir -p $GITPOD_REPO_ROOT/docroot/themes/custom && | ||
mv theme $GITPOD_REPO_ROOT/docroot/themes/custom/$THEME_NAME && | ||
cd $GITPOD_REPO_ROOT && | ||
export PREVIEW_FULL_URL=`gp url 8001` && | ||
export PREVIEW_URL=${PREVIEW_FULL_URL#"https://"} && | ||
composer install --no-interaction && | ||
cp .gitpod/blt.yml blt/local.blt.yml && | ||
mkdir -p docroot/sites/settings && | ||
find docroot/sites/ -name 'local*' | xargs rm && | ||
cp .gitpod/global.settings.php docroot/sites/settings/global.settings.php && | ||
cp .gitpod/default.local.services.yml docroot/sites/local.services.yml && | ||
blt blt:telemetry:disable --no-interaction && | ||
blt settings && | ||
drush si stanford_profile -v -y && | ||
drush cr && | ||
drush cim -y && | ||
drush then $THEME_NAME && | ||
drush cset system.theme default $THEME_NAME -y | ||
command: | | ||
export THEME_NAME=${PWD##*/} && | ||
export PREVIEW_FULL_URL=`gp url 8001` && | ||
export PREVIEW_URL=${PREVIEW_FULL_URL#"https://"} && | ||
apache2ctl restart | ||
drush uli | ||
drush uli | xargs gp preview --external | ||
git config core.fileMode false | ||
blt blt:telemetry:disable --no-interaction | ||
cd docroot/themes/custom/$THEME_NAME && | ||
git remote set-url origin [email protected]:SU-SWS/$THEME_NAME.git && | ||
nvm install && | ||
nvm use && | ||
yarn && | ||
yarn watch |