Skip to content

Commit

Permalink
ISSUE-204: restore action
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-aveiga committed Nov 26, 2024
1 parent 73c85a0 commit b044007
Showing 1 changed file with 34 additions and 22 deletions.
56 changes: 34 additions & 22 deletions scaffold/github/actions/acquia/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,43 @@ inputs:
runs:
using: "composite"
steps:
- name: debug
run: |
echo "==============="
ls -al
echo "==============="
ls -al .github/
echo "==============="
ls -al .github/actions/
echo "==============="
- name: Create GitHub Deployment
uses: .github/actions/drainpipe/common/deployment-create
with:
github-token: ${{ inputs.github-token }}
environment: ${{ inputs.environment }}

ls -al .github/actions/drainpipe/
echo "==============="
- name: Put site in Maintenance Mode
run: |
source .github/actions/drainpipe/common/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 }}"
APPLICATION=${ENVIRONMENT%.*}
drainpipe_exec "acli remote:aliases:download --no-interaction $APPLICATION"
drainpipe_exec "./vendor/bin/task drupal:maintenance:on [email protected]"
shell: bash

ls -al .github/actions/drainpipe/common/
- name: Push to Acquia
uses: .github/actions/drainpipe/acquia/push
with:
environment: ${{ inputs.environment }}
commit-message: ${{ inputs.commit-message }}
api-key: ${{ inputs.api-key }}
api-secret: ${{ inputs.api-secret }}

echo "==============="
- name: Run updates
uses: .github/actions/drainpipe/acquia/update
with:
environment: ${{ inputs.environment }}
run-installer: ${{ inputs.run-installer }}

ls -al .github/actions/drainpipe/common/deployment-create
- name: Set Deployment Status
uses: .github/actions/drainpipe/common/deployment-status
with:
github-token: ${{ inputs.github-token }}
environment-url: ${{ inputs.environment-url }}

- name: Take site out of Maintenance Mode
run: |
drainpipe_exec "./vendor/bin/task drupal:maintenance:on site=@${{ inputs.environment }}"
shell: bash


0 comments on commit b044007

Please sign in to comment.