Add CI workflow for Homer deployment
Some checks failed
Deploy Homer dashboard / deploy (push) Has been cancelled
Some checks failed
Deploy Homer dashboard / deploy (push) Has been cancelled
This commit is contained in:
33
.gitea/workflows/deploy.yml
Normal file
33
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Deploy Homer dashboard
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- name: Récupérer le code du dépôt
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Copier config Homer sur le serveur
|
||||||
|
uses: appleboy/scp-action@v0.1.8
|
||||||
|
with:
|
||||||
|
host: "127.0.0.1"
|
||||||
|
username: "root"
|
||||||
|
port: "22"
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
source: "config.yml"
|
||||||
|
target: "/home/root/docker/homer/config.yml"
|
||||||
|
|
||||||
|
- name: Redémarrer le conteneur Homer
|
||||||
|
uses: appleboy/ssh-action@v0.1.8
|
||||||
|
with:
|
||||||
|
host: "127.0.0.1"
|
||||||
|
username: "root"
|
||||||
|
port: "22"
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
script: |
|
||||||
|
cd /home/root/docker
|
||||||
|
docker compose restart homer
|
||||||
Reference in New Issue
Block a user