From 87d19cf7cf70e2743cbe658ca490a206a607f7c3 Mon Sep 17 00:00:00 2001 From: Goutte Date: Tue, 19 Mar 2019 08:41:43 +0100 Subject: [PATCH] Clean the CI conf. --- .gitlab-ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e24dbcf33..af48aadc3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,17 +1,15 @@ stages: - deploy +# Deployment is done in a reverse manner. +# Instead of rsyncing the files on the servers, we notify them. +# They will `git pull` the master by themselves. deploy: stage: deploy image: appropriate/curl:latest -# image: byrnedo/alpine-curl:0.1 -# > curl: host sh not found -# before_script: - # Host not found. But the runner has internet access?! -# - curl "https://courses.m3p2.ljbac.com/sync" script: - - echo "Sending hooks to the production servers…" - - curl "https://courses.m3p2.ljbac.com/sync" + - echo "Sending hook(s) to the production server(s)…" + - curl --no-buffer --silent --show-error https://courses.m3p2.ljbac.com/sync - echo "Deployed!" # Ideally we should test all the pages of the website