-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISSUE-204: restoring site maintenance commands
- Loading branch information
1 parent
31393a9
commit ab5444f
Showing
1 changed file
with
4 additions
and
19 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 |
---|---|---|
|
@@ -34,22 +34,7 @@ runs: | |
- name: Put site in Maintenance Mode | ||
run: | | ||
# @TODO: restore | ||
# source .github/actions/drainpipe/set-env/bash_aliases | ||
# @TODO: remove | ||
# Temporarily adding drainpipe_exec here. | ||
drainpipe_exec() { | ||
if [ "$DRAINPIPE_DDEV" == "true" ]; then | ||
ddev exec "$@" | ||
else | ||
eval "$@" | ||
fi | ||
} | ||
echo "API KEY" | ||
echo ${{ inputs.api-key }}| cut -c 1-10 | ||
source .github/actions/drainpipe/set-env/bash_aliases | ||
drainpipe_exec "ACQUIA_API_KEY=${{ inputs.api-key }} ACQUIA_API_SECRET=${{ inputs.api-secret }} ./vendor/bin/task acquia:auth" | ||
ENVIRONMENT="${{ inputs.environment }}" | ||
|
@@ -83,11 +68,11 @@ runs: | |
# @TODO: restore, debug | ||
# ddev task drupal:maintenance:on [email protected] | ||
# drainpipe_exec "task drupal:maintenance:on [email protected]" | ||
drainpipe_exec "task drupal:maintenance:on [email protected]" | ||
# ddev task drupal:maintenance:on [email protected] | ||
# drainpipe_exec "./vendor/bin/task drupal:maintenance:on [email protected]" | ||
# drainpipe_exec "./vendor/bin/task drupal:maintenance:on [email protected]" | ||
shell: bash | ||
|
||
- name: Push to Acquia | ||
|
@@ -116,7 +101,7 @@ runs: | |
run: | | ||
source .github/actions/drainpipe/set-env/bash_aliases | ||
drainpipe_exec "./vendor/bin/task drupal:maintenance:on site=@${{ inputs.environment }}" | ||
drainpipe_exec "./vendor/bin/task drupal:maintenance:off site=@${{ inputs.environment }}" | ||
shell: bash | ||
|
||
|