Update 2 files

- /.gitea/workflows/test.yml
- /.gitlab-ci.yml
This commit is contained in:
2024-12-09 23:42:11 +00:00
parent 9273d72349
commit 6ebb95e70b
2 changed files with 9 additions and 29 deletions

View File

@@ -1,29 +0,0 @@
name: Déploiement du site
on:
push:
branches:
- main
jobs:
site-deploy:
runs-on: ubuntu-latest
steps:
- 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"
- name: Update Frontend
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASSWORD }}
script: |
ssh mikoshi "cd /home/timelapse/nginx && git pull origin main && docker restart timelapse-frontend"