diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml deleted file mode 100644 index dea3b20..0000000 --- a/.gitea/workflows/test.yml +++ /dev/null @@ -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" \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e5257d8 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,9 @@ +stages: + - deploy + +deploy_timelapse: + stage: deploy + script: + - ssh kerboul@cynosure "cd /home/kerboul/scripts/timelapse && ./update_timelapse.sh -o" + only: + - main