Skip to content

Commit

Permalink
New CD workflow added.
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalkhode1 committed Nov 29, 2024
1 parent a350b83 commit 05b8983
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/deployment.workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Code Deployment on Acquia Env"
on:
push:
branches: [ code-deployment ]q
jobs:
acquia_code_deployment:
#if: ${{ github.ref == 'refs/heads/develop' && github.event_name == 'push' }}
name: "Code Deployment on Acquia Environment"
env:
GIT_AUTHOR_NAME: "Vishal Khode"
GIT_COMMITTER_NAME: "Vishal Khode"
GIT_COMMITTER_EMAIL: "[email protected]"
GIT_AUTHOR_EMAIL: "[email protected]"
runs-on: ubuntu-latest
environment: code_deployment
concurrency: production
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure SSH keys
run: |
mkdir -p ~/.ssh
echo "${DRUPAL_SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
eval `ssh-agent -s`
ssh-add ~/.ssh/id_rsa
ssh-keyscan "${DRUPAL_SSH_KNOWN_HOSTS}" >> ~/.ssh/known_hosts
shell: bash
env:
DRUPAL_SSH_PRIVATE_KEY: ${{ secrets.DRUPAL_SSH_PRIVATE_KEY }}
DRUPAL_SSH_KNOWN_HOSTS: git.drupal.org
- name: Setup Acquia Cloud CLI
run: |
curl -OL https://github.com/acquia/cli/releases/latest/download/acli.phar
chmod +x acli.phar
mv acli.phar /usr/local/bin/acli
acli --version
#acli auth:login --key="${ACQUIA_API_KEY}" --secret="${ACQUIA_API_SECRET}"

0 comments on commit 05b8983

Please sign in to comment.