Compare commits
2 Commits
e31bf0fbff
...
c0061491ab
| Author | SHA1 | Date | |
|---|---|---|---|
| c0061491ab | |||
| b80e4c32a5 |
@@ -16,3 +16,23 @@ steps:
|
|||||||
image: node:22-alpine
|
image: node:22-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|
||||||
|
- name: notify-failure
|
||||||
|
image: curlimages/curl:latest
|
||||||
|
environment:
|
||||||
|
PUSHOVER_TOKEN:
|
||||||
|
from_secret: pushover_token
|
||||||
|
PUSHOVER_USER:
|
||||||
|
from_secret: pushover_user
|
||||||
|
commands:
|
||||||
|
- |
|
||||||
|
curl -s \
|
||||||
|
--form-string "token=$PUSHOVER_TOKEN" \
|
||||||
|
--form-string "user=$PUSHOVER_USER" \
|
||||||
|
--form-string "title=Halfstreet CI failed" \
|
||||||
|
--form-string "message=$CI_COMMIT_BRANCH: $CI_COMMIT_MESSAGE" \
|
||||||
|
--form-string "url=$CI_PIPELINE_URL" \
|
||||||
|
--form-string "url_title=View pipeline" \
|
||||||
|
https://api.pushover.net/1/messages.json
|
||||||
|
when:
|
||||||
|
- status: failure
|
||||||
|
|||||||
Generated
+6057
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user