Skip to content

Commit

Permalink
CI: that's not how you import secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauryCarrade committed Apr 8, 2021
1 parent 8062dc6 commit bccd391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:
run: 'echo "$SSH_KEY" > id_rsa'
shell: bash
env:
SSH_KEY: ${{ HAWK_SSH_KEY }}
SSH_KEY: ${{ secrets.HAWK_SSH_KEY }}
- name: Write Ansible Vault password to file
run: 'echo "$VAULT_PASS" > vault_password'
shell: bash
env:
VAULT_PASS: ${{ HAWK_ANSIBLE_VAULT_PASSWORD }}
VAULT_PASS: ${{ secrets.HAWK_ANSIBLE_VAULT_PASSWORD }}
- name: Run Ansible playbook to deploy to production
run: |
ansible-playbook --vault-password-file vault_password --private-key id_rsa playbook.yml

0 comments on commit bccd391

Please sign in to comment.