Skip to content

Commit d12d09b

Browse files
authored
Add ssh_key step (#1752)
1 parent 33d39fa commit d12d09b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/prod-deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ jobs:
5353
printf '%s' "${ANSIBLE_VAULT_PASSWORD}" > "$HOME/.vault"
5454
chmod 600 "$HOME/.vault"
5555
56+
- name: Start ssh-agent and add key
57+
uses: webfactory/[email protected]
58+
with:
59+
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
60+
5661
- name: Run Ansible Airflow Playbook for Prod
5762
working-directory: ansible-playbook-airflow
5863
run: |

.github/workflows/qa-deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ jobs:
5050
printf '%s' "${ANSIBLE_VAULT_PASSWORD}" > "$HOME/.vault"
5151
chmod 600 "$HOME/.vault"
5252
53+
- name: Start ssh-agent and add key
54+
uses: webfactory/[email protected]
55+
with:
56+
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
57+
5358
- name: Run Ansible Airflow Playbook for QA
5459
working-directory: ansible-playbook-airflow
5560
run: |

0 commit comments

Comments
 (0)