Merge pull request #662 from OpenImaging/re-enable-ci #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Celery worker | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
ansible: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Ansible role | |
run: ansible-galaxy install -r ansible/requirements.yml | |
- name: Write vault pass and private key | |
env: | |
VAULT_PASSWORD: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} | |
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
run: | | |
echo $VAULT_PASSWORD > ansible/vault_pass.txt | |
mkdir -p $HOME/.ssh | |
echo "$PRIVATE_KEY" > $HOME/.ssh/id_miqa | |
chmod 600 $HOME/.ssh/id_miqa | |
- name: Run Ansible playbook for Celery | |
env: | |
ANSIBLE_HOST_KEY_CHECKING: false | |
working-directory: ansible | |
run: ansible-playbook --vault-password-file vault_pass.txt -i hosts playbook.yml |