Skip to content

Commit efb8640

Browse files
authored
Move discord server host to GitHub secret (#207)
1 parent 81d2dad commit efb8640

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ jobs:
2727
ssh-private-key: ${{ secrets.DISCORD_BOT_DEPLOY_KEY }}
2828

2929
- name: Deploy EuroPythonBot with ansible
30-
run: ansible-playbook -i ansible/inventory.ini ansible/deploy-playbook.yml --private-key="/home/runner/.ssh/id_rsa" --user=root
30+
run: ansible-playbook -i ${{ secrets.DISCORD_BOT_SERVER_HOST }}, ansible/deploy-playbook.yml --private-key="/home/runner/.ssh/id_rsa" --user=root
3131
env:
3232
ANSIBLE_HOST_KEY_CHECKING: "false"

ansible/deploy-playbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Deploy Discord Bot to the server
3-
hosts: bot_server
3+
hosts: all
44
vars:
55
repository_url: https://github.com/EuroPython/discord.git
66

ansible/inventory.ini

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)