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 - wget https://fastdl.hackmi.ch/scripts/s3upload.sh
- bash s3upload.sh amogusspecialsauce/b/main compiled-${DRONE_COMMIT_SHA:0:10}.zip - bash s3upload.sh amogusspecialsauce/b/main compiled-${DRONE_COMMIT_SHA:0:10}.zip
- name: discord notification - name: Send discord notification
image: appleboy/drone-discord image: alpine
settings: environment:
webhook_id: WEBHOOK_URL:
from_secret: webhook_id from_secret: WEBHOOK_URL
webhook_token: commands:
from_secret: webhook_token - apk add bash curl wget ca-certificates openssl
message: > - wget https://fastdl.hackmi.ch/scripts/webhook-amogusspecialsauce.sh
{{#success build.status}} - bash webhook-amogusspecialsauce.sh
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}}
trigger: trigger:
branch: branch:
@ -121,21 +115,15 @@ steps:
- wget https://fastdl.hackmi.ch/scripts/s3upload.sh - wget https://fastdl.hackmi.ch/scripts/s3upload.sh
- bash s3upload.sh amogusspecialsauce/releases compiled-${DRONE_TAG}.zip - bash s3upload.sh amogusspecialsauce/releases compiled-${DRONE_TAG}.zip
- name: discord notification - name: Send discord notification
image: appleboy/drone-discord image: alpine
settings: environment:
webhook_id: WEBHOOK_URL:
from_secret: webhook_id from_secret: WEBHOOK_URL
webhook_token: commands:
from_secret: webhook_token - apk add bash curl wget ca-certificates openssl
message: > - wget https://fastdl.hackmi.ch/scripts/webhook-amogusspecialsauce.sh
{{#success build.status}} - bash webhook-amogusspecialsauce.sh
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}}
trigger: trigger:
event: event: