|
|
@ -1,17 +1,15 @@ |
|
|
stages: |
|
|
stages: |
|
|
- deploy |
|
|
- 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: |
|
|
deploy: |
|
|
stage: deploy |
|
|
stage: deploy |
|
|
image: appropriate/curl:latest |
|
|
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: |
|
|
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!" |
|
|
- echo "Deployed!" |
|
|
|
|
|
|
|
|
# Ideally we should test all the pages of the website |
|
|
# Ideally we should test all the pages of the website |
|
|
|