Skip to content

Commit

Permalink
ISSUE-204: remove debugging commands
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-aveiga committed Jan 28, 2025
1 parent 65594c1 commit 5ce6c01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 34 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/TestAcquia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ jobs:
yq -i '.includes.acquia="./vendor/lullabot/drainpipe/tasks/acquia.yml"' Taskfile.yml
- name: Debug
run: tail -n 50 docroot/sites/default/settings.php

- name: Install Drupal
run: |
Expand All @@ -74,9 +71,6 @@ jobs:
# is not create automatically. Running cron once does that for us.
ddev drush cron
- name: Debug
run: cat config/.htaccess

- name: Create .drainpipeignore
run: |
echo "/web/sites/default/files" >> .drainpipeignore
Expand Down
31 changes: 3 additions & 28 deletions scaffold/github/actions/acquia/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,40 +40,15 @@ runs:
drainpipe_exec "ACQUIA_API_KEY=${{ inputs.api-key }} ACQUIA_API_SECRET=${{ inputs.api-secret }} ./vendor/bin/task acquia:auth"
ENVIRONMENT="${{ inputs.environment }}"
APPLICATION=${ENVIRONMENT%.*}
drainpipe_exec "acli remote:aliases:download --no-interaction $APPLICATION"
# - name: debug lullabotsandbox.site.yml before
# shell: bash
# run: drainpipe_exec "cat /var/www/html/drush/sites/lullabotsandbox.site.yml"

- name: continue
shell: bash
run: |
source .github/actions/drainpipe/set-env/bash_aliases
echo "BEFORE"
drainpipe_exec "cat /var/www/html/drush/sites/lullabotsandbox.site.yml"
# Avoid using drush9
# drainpipe_exec "sed -i.bak 's|drush9|/var/www/html/lullabotsandbox.dev/vendor/bin/drush|g' /var/www/html/drush/sites/lullabotsandbox.site.yml"
# Avoid using drush9, it seems to be an Acquia issue.
# https://docs.acquia.com/acquia-cloud-platform/manage-apps/command-line/drush#section-specifying-a-version-of-drush-in-commands
# Removes *.paths where drush9 is specified.
drainpipe_exec "yq eval '(.** | .paths) = {}' -i /var/www/html/drush/sites/lullabotsandbox.site.yml"
echo "AFTER"
drainpipe_exec "cat /var/www/html/drush/sites/lullabotsandbox.site.yml"
drainpipe_exec "echo \"StrictHostKeyChecking no\" >> ~/.ssh/config"
drainpipe_exec "task drupal:maintenance:on [email protected]"
# - name: debug lullabotsandbox.site.yml after
# shell: bash
# run: drainpipe_exec "cat /var/www/html/drush/sites/lullabotsandbox.site.yml"


- name: Push to Acquia
uses: ./drainpipe/scaffold/github/actions/acquia/push
with:
Expand Down

0 comments on commit 5ce6c01

Please sign in to comment.