Commit 98a20973 authored by Tom Behets's avatar Tom Behets
Browse files

send matrix message after build

parent d47685df
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for .gitlab-ci.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ pages:
  - hugo
  - echo $(date +%Y.%m.%d)
  - 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"
  - curl -XPOST -d '{"msgtype":"m.text", "body":"Website updated by $GITLAB_USER_NAME CI_COMMIT_MESSAGE"}' "https://hackerspaces.be/_matrix/client/r0/rooms/\!mnQLxCDhwmKozNmuIB:hackerspaces.be/send/m.room.message?access_token=$MATRIX_ACCESS_TOKEN"
  - curl -XPOST -d '{"msgtype":"m.text", "body":"Website updated by $GITLAB_USER_NAME CI_COMMIT_MESSAGE"}' "https://hackerspaces.be/_matrix/client/r0/rooms/!mnQLxCDhwmKozNmuIB:hackerspaces.be/send/m.room.message?access_token=$MATRIX_ACCESS_TOKEN"
  #- scp -r public gitlab@hsbxl.be:/srv/www/hsbxl.be/www/versions/$(date +%Y.%m.%d)/
  #- ssh gitlab@hsbxl.be "rm /www/live; ln -sf versions/$(date +%Y.%m.%d)/public /www/live"
  artifacts: