Skip to content

Commit

Permalink
ISSUE-204: restoring site maintenance commands
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-aveiga committed Jan 27, 2025
1 parent 31393a9 commit ab5444f
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions scaffold/github/actions/acquia/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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


0 comments on commit ab5444f

Please sign in to comment.