Commit e4463420 authored by Betz's avatar Betz

better pipeline stages

parent d819c0e0
Pipeline #94863305 passed with stages
in 2 minutes and 48 seconds
......@@ -5,6 +5,7 @@ image: monachus/hugo
stages:
- Build
- Deploy
- Notify
before_script:
- apt-get update
......@@ -43,6 +44,6 @@ Deploy:
- tar cz public | ssh gitlab@hsbxl.be "mkdir -p /www/versions/$(date +%Y.%m.%d); cd /www/versions/$(date +%Y.%m.%d); tar xz; rm /www/live; ln -sf versions/$(date +%Y.%m.%d)/public /www/live"
Notify:
stage: Deploy
stage: Notify
script:
- curl -XPOST -d '{"msgtype":"m.text", "body":"Site updated."}' "https://hackerspaces.be/_matrix/client/r0/rooms/!mnQLxCDhwmKozNmuIB:hackerspaces.be/send/m.room.message?access_token=$MATRIX_ACCESS_TOKEN"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment