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