changed ci notification
This commit is contained in:
parent
3948f3924b
commit
ad9072c908
1 changed files with 18 additions and 30 deletions
48
.drone.yml
48
.drone.yml
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue