From bccd39139bc2487cd3e978bebef4db5fd44b74fc Mon Sep 17 00:00:00 2001 From: Amaury Carrade Date: Thu, 8 Apr 2021 15:29:10 +0200 Subject: [PATCH] CI: that's not how you import secrets --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d4ad5b..e178fac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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