2026-05-09 11:33:15 -05:00
|
|
|
when:
|
|
|
|
|
- event: [push, pull_request, manual]
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: install
|
|
|
|
|
image: node:22-alpine
|
|
|
|
|
commands:
|
|
|
|
|
- npm ci
|
|
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
|
image: node:22-alpine
|
|
|
|
|
commands:
|
|
|
|
|
- npm test
|
|
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
|
image: node:22-alpine
|
|
|
|
|
commands:
|
|
|
|
|
- npm run build
|
2026-05-09 11:47:50 -05:00
|
|
|
|
2026-05-09 11:50:28 -05:00
|
|
|
- name: notify
|
2026-05-09 11:47:50 -05:00
|
|
|
image: curlimages/curl:latest
|
|
|
|
|
environment:
|
|
|
|
|
PUSHOVER_TOKEN:
|
|
|
|
|
from_secret: pushover_token
|
|
|
|
|
PUSHOVER_USER:
|
|
|
|
|
from_secret: pushover_user
|
|
|
|
|
commands:
|
|
|
|
|
- |
|
2026-05-09 11:50:28 -05:00
|
|
|
if [ "$CI_PIPELINE_STATUS" = "success" ]; then
|
|
|
|
|
TITLE="Halfstreet CI passed"
|
|
|
|
|
PRIORITY=-1
|
|
|
|
|
else
|
|
|
|
|
TITLE="Halfstreet CI failed"
|
|
|
|
|
PRIORITY=0
|
|
|
|
|
fi
|
2026-05-09 11:47:50 -05:00
|
|
|
curl -s \
|
|
|
|
|
--form-string "token=$PUSHOVER_TOKEN" \
|
|
|
|
|
--form-string "user=$PUSHOVER_USER" \
|
2026-05-09 11:50:28 -05:00
|
|
|
--form-string "title=$TITLE" \
|
|
|
|
|
--form-string "priority=$PRIORITY" \
|
2026-05-09 11:47:50 -05:00
|
|
|
--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:
|
2026-05-09 11:50:28 -05:00
|
|
|
- status: [success, failure]
|