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

28 lines
682 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 origin master
# Relance le service Hugo-staging
docker compose -f /home/deploy/infra/docker-compose.staging.yml up -d
echo "Staging mis à jour à $(date)"