Test deploiement automatique
Some checks failed
Déploiement Hugo Staging / deploy-staging (push) Failing after 0s
Some checks failed
Déploiement Hugo Staging / deploy-staging (push) Failing after 0s
This commit is contained in:
parent
8ceeea5ecb
commit
b8034dda9a
@ -9,10 +9,16 @@ jobs:
|
|||||||
deploy-staging:
|
deploy-staging:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Récupération du code
|
- name: Déployer sur staging
|
||||||
uses: actions/checkout@v2
|
shell: bash
|
||||||
- name: Déploiement sur staging
|
|
||||||
run: |
|
run: |
|
||||||
|
# Dirige-toi dans le clone staging
|
||||||
cd /home/deploy/staging
|
cd /home/deploy/staging
|
||||||
|
|
||||||
|
# Récupère la dernière version de master
|
||||||
git pull gitea master
|
git pull gitea master
|
||||||
docker compose -f docker-compose.staging.yml up -d
|
|
||||||
|
# Relance le service Hugo-staging
|
||||||
|
docker compose -f /home/deploy/infra/docker-compose.staging.yml up -d
|
||||||
|
|
||||||
|
echo "Staging mis à jour à $(date)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user