changed ci notification

This commit is contained in:
Phil 2023-08-20 20:13:56 +02:00
parent 3948f3924b
commit ad9072c908

View file

@ -44,21 +44,15 @@ steps:
- wget https://fastdl.hackmi.ch/scripts/s3upload.sh
- bash s3upload.sh amogusspecialsauce/b/main compiled-${DRONE_COMMIT_SHA:0:10}.zip
- name: discord notification
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: webhook_id
webhook_token:
from_secret: webhook_token
message: >
{{#success build.status}}
Test-Build {{build.number}} succeeded.
Download: https://s3.hackmi.ch/amogusspecialsauce/b/main/compiled-${DRONE_COMMIT_SHA:0:10}.zip
{{else}}
Test-Build {{build.number}} failed.
See: {{build.link}}
{{/success}}
- name: Send discord notification
image: alpine
environment:
WEBHOOK_URL:
from_secret: WEBHOOK_URL
commands:
- apk add bash curl wget ca-certificates openssl
- wget https://fastdl.hackmi.ch/scripts/webhook-amogusspecialsauce.sh
- bash webhook-amogusspecialsauce.sh
trigger:
branch:
@ -121,21 +115,15 @@ steps:
- wget https://fastdl.hackmi.ch/scripts/s3upload.sh
- bash s3upload.sh amogusspecialsauce/releases compiled-${DRONE_TAG}.zip
- name: discord notification
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: webhook_id
webhook_token:
from_secret: webhook_token
message: >
{{#success build.status}}
Test-Build {{build.number}} succeeded.
Download: https://s3.hackmi.ch/amogusspecialsauce/releases/compiled-${DRONE_TAG}.zip
{{else}}
Test-Build {{build.number}} failed.
See: {{build.link}}
{{/success}}
- name: Send discord notification
image: alpine
environment:
WEBHOOK_URL:
from_secret: WEBHOOK_URL
commands:
- apk add bash curl wget ca-certificates openssl
- wget https://fastdl.hackmi.ch/scripts/webhook-amogusspecialsauce.sh
- bash webhook-amogusspecialsauce.sh
trigger:
event: