diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..f978518 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,21 @@ +name: Deploy on push + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Pull latest code + run: | + cd /opt/mon-app + HOME=/opt/deploy git pull origin main + + - name: Vérification + run: | + echo "Déployé le $(date)" + git -C /opt/mon-app log -1 --oneline