Discord pipeline notifications modcheck?
This commit is contained in:
parent
358cd5ee9a
commit
751d20178d
1 changed files with 34 additions and 16 deletions
|
@ -1,3 +1,7 @@
|
|||
stages:
|
||||
- deploy
|
||||
- notification
|
||||
|
||||
update-ip:
|
||||
stage: .post
|
||||
image: python:3.10.8-slim-buster
|
||||
|
@ -30,3 +34,17 @@ deploy-site:
|
|||
- echo "Connecting to proxmox machine"
|
||||
- ssh $DEPLOY_USER@$DEPLOY_HOST -o StrictHostKeyChecking=no IdentitiesOnly=yes "screen -X -S website-firq-npx kill; rm -r -f public/*; cd build; git reset --hard; git pull; rm -r -f node_modules; npm install; npm run build; cp -R public ~; cd ~; screen -S website-firq-npx -dm npx serve public/ -p 9000"
|
||||
|
||||
success_notification:
|
||||
stage: notification
|
||||
script:
|
||||
- wget https://raw.githubusercontent.com/DiscordHooks/gitlab-ci-discord-webhook/master/send.sh
|
||||
- chmod +x send.sh
|
||||
- ./send.sh success $WEBHOOK_URL
|
||||
when: on_success
|
||||
failure_notification:
|
||||
stage: notification
|
||||
script:
|
||||
- wget https://raw.githubusercontent.com/DiscordHooks/gitlab-ci-discord-webhook/master/send.sh
|
||||
- chmod +x send.sh
|
||||
- ./send.sh failure $WEBHOOK_URL
|
||||
when: on_failure
|
||||
|
|
Loading…
Reference in a new issue