Merge branch 'main' of https://gitea.kerboul.me/projet_coop/timelapse-frontend
This commit is contained in:
26
.gitea/workflows/test.yml
Normal file
26
.gitea/workflows/test.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Déploiement du site
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
site-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Test SSH connection
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
password: ${{ secrets.SSH_PASSWORD }}
|
||||
script: |
|
||||
echo "CONNEXION REUSSIE"
|
||||
echo "Envoi de la commande de déploiement via SSH"
|
||||
ssh mikoshi "cd /home/timelapse/nginx && git pull origin main && docker restart timelapse-frontend"
|
||||
echo "Commande envoyée avec succès"
|
||||
Reference in New Issue
Block a user