Re-add deployment steps

This commit is contained in:
Oliver Davies 2021-01-07 20:33:21 +00:00
parent 4d3cf095fd
commit f66cc810ea

View file

@ -20,38 +20,36 @@ jobs:
ANSIBLE_HOST_KEY_CHECKING: no ANSIBLE_HOST_KEY_CHECKING: no
steps: steps:
- run: ansible --version - name: Checkout the code
uses: actions/checkout@a81bbbf
# - name: Checkout the code - name: Add the deployment SSH key
# uses: actions/checkout@a81bbbf uses: shimataro/ssh-key-action@6f350ca
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
name: id_rsa
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
# - name: Add the deployment SSH key - name: Cache dependencies
# uses: shimataro/ssh-key-action@6f350ca uses: actions/cache@d974700
# with: with:
# key: ${{ secrets.SSH_PRIVATE_KEY }} path: tools/ansible/.roles
# name: id_rsa key: dependencies-composer-${{ hashFiles('tools/ansible/requirements.yml') }}
# known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
# - name: Cache dependencies - name: Download Ansible roles
# uses: actions/cache@d974700 run: ansible-galaxy install -r tools/ansible/requirements.yml
# with:
# path: tools/ansible/.roles
# key: dependencies-composer-${{ hashFiles('tools/ansible/requirements.yml') }}
# - name: Download Ansible roles - name: Export the Ansible Vault password
# run: ansible-galaxy install -r tools/ansible/requirements.yml run: echo $ANSIBLE_VAULT_PASS > tools/ansible/.vault-pass.txt
env:
ANSIBLE_VAULT_PASS: ${{ secrets.ANSIBLE_VAULT_PASS }}
# - name: Export the Ansible Vault password - name: Deploy the code
# run: echo $ANSIBLE_VAULT_PASS > tools/ansible/.vault-pass.txt run: >
# env: ansible-playbook tools/ansible/deploy.yml
# ANSIBLE_VAULT_PASS: ${{ secrets.ANSIBLE_VAULT_PASS }} -i tools/ansible/hosts.yml
-e "ansistrano_deploy_branch=$GITHUB_SHA"
--vault-password-file=tools/ansible/.vault-pass.txt
# - name: Deploy the code - name: Remove the Ansible Vault password file
# run: > run: rm tools/ansible/.vault-pass.txt
# ansible-playbook tools/ansible/deploy.yml
# -i tools/ansible/hosts.yml
# -e "ansistrano_deploy_branch=$GITHUB_SHA"
# --vault-password-file=tools/ansible/.vault-pass.txt
# - name: Remove the Ansible Vault password file
# run: rm tools/ansible/.vault-pass.txt