Julien Martin ea29ff6058
Some checks failed
Déploiement Hugo Staging / deploy-staging (push) Failing after 0s
Test deploiement automatique 2
2025-05-19 13:28:22 +02:00

28 lines
681 B
YAML

name: Déploiement Hugo Staging
on:
push:
branches:
- master
jobs:
deploy-staging:
runs-on: self-hosted
steps:
- name: Déployer sur staging
shell: bash
run: |
# Déclare /home/deploy/staging comme safe pour Git
git config --global --add safe.directory /home/deploy/staging
# Dirige-toi dans le clone staging
cd /home/deploy/staging
# Récupère la dernière version de master
git pull gitea master
# Relance le service Hugo-staging
docker compose -f /home/deploy/infra/docker-compose.staging.yml up -d
echo "Staging mis à jour à $(date)"