-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
18 additions
and
13 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
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
drush-sync IS_DRUPAL=yes DRUPAL_SYNC_FILES=no | ||
drush-sync IS_DRUPAL=yes DRUPAL_SYNC_FILES=no DUMP_SQL_EXISTS=yes | ||
--- | ||
drush sql-drop --quiet -y | ||
printf "\n⭐ \033[0;33mSync database from @main...\033[0m\n" | ||
drush sql-sync -y --structure-tables-key=common @main @self | ||
printf "\n⭐ \033[0;33mImport local SQL dump...\033[0m\n" | ||
drush sql-query --file=/app/dump.sql && echo 'SQL dump imported' |
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
drush-sync IS_DRUPAL=yes | ||
drush-sync IS_DRUPAL=yes SYNC_TARGETS=yes DUMP_SQL_EXISTS=yes | ||
--- | ||
drush sql-drop --quiet -y | ||
printf "\n⭐ \033[0;33mSync database from @main...\033[0m\n" | ||
drush sql-sync -y --structure-tables-key=common @main @self | ||
printf "\n⭐ \033[0;33mSync files from @main...\033[0m\n" | ||
drush -y rsync --exclude-paths=css:ctools:js:php:tmp:tmp_php --mode=Pakzu @main:%files @self:%files -- --omit-dir-times --no-perms --no-group --no-owner --chmod=ugo=rwX | ||
printf "\n⭐ \033[0;33mImport local SQL dump...\033[0m\n" | ||
drush sql-query --file=/app/dump.sql && echo 'SQL dump imported' |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
gh-download-dump DUMP_SQL_EXISTS=yes GH_DUMP_ARTIFACT=yes DUMP_SQL_EXISTS=no | ||
--- | ||
printf "\n⭐ \033[0;33mDownload database dump from repository artifacts\n\033[0m\n" | ||
gh run download -n latest-dump && printf "Downloaded dump.sql\n" || printf "\033[0;31mFailed\033[0m\n" | ||
gh run download -n latest-dump && printf "Downloaded dump.sql\n" || (printf "\033[0;31mFailed\033[0m\n" && exit 1) |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
gh-download-dump DUMP_SQL_EXISTS=yes GH_DUMP_ARTIFACT=yes DUMP_SQL_EXISTS=no GH_ARTIFACT=foobar GH_REPO=foobar/barfur | ||
--- | ||
printf "\n⭐ \033[0;33mDownload database dump from repository artifacts\n\033[0m\n" | ||
gh run download -n foobar -R foobar/barfur && printf "Downloaded dump.sql\n" || printf "\033[0;31mFailed\033[0m\n" | ||
gh run download -n foobar -R foobar/barfur && printf "Downloaded dump.sql\n" || (printf "\033[0;31mFailed\033[0m\n" && exit 1) |