build: add gitea runner

This commit is contained in:
xuu 2023-10-13 11:29:51 -06:00
parent e27626d087
commit 1a0b5bf171
Signed by: xuu
GPG Key ID: 8B3B0604F164E04F
3 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,14 @@
[Unit]
Description=sour.is paste
After=syslog.target network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/sour.is-paste
User=www-data
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target

5
.ansible/inventory Normal file
View File

@ -0,0 +1,5 @@
[lavana]
lavana.sour.is
[kapha]
kapha.sour.is

25
.ansible/playbook.yml Normal file
View File

@ -0,0 +1,25 @@
---
- name: Deploy EV
hosts: kapha
tasks:
- name: Copy build to remote
ansible.builtin.copy:
src: ../build/sour.is-paste
dest: /usr/local/bin/sour.is-paste
owner: root
group: root
- name: Copy build to remote
ansible.builtin.copy:
src: sour.is-paste.service
dest: /etc/systemd/system/sour.is-paste.service
owner: root
group: root
- name: Restart service
systemd:
name: sour.is-paste
enabled: true
daemon_reload: true
state: restarted