-
-
Notifications
You must be signed in to change notification settings - Fork 47
32 lines (27 loc) · 781 Bytes
/
deploy-dev.yml
File metadata and controls
32 lines (27 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Deploy dev.flora.pm
on:
push:
branches: ["development"]
concurrency:
group: dev-deployment-${{ github.ref_name }}
cancel-in-progress: true
jobs:
playbook:
runs-on: ubuntu-latest
environment: development
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup SSH
uses: webfactory/ssh-agent@v0.10.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Invoke Ansible
working-directory: deployment/
run: |
ansible-playbook -vvv \
-i inventory.yaml \
--extra-vars ansible_user=${{ secrets.ANSIBLE_USER }} \
-e "ansible_port=${{ secrets.ANSIBLE_SSH_PORT }}" \
playbooks/deploy-dev.yaml \
--diff