feat: now supports async functions for logging data
- `logger.debug('message', async () => ({ asyncReturn: await asyncFn() }))` is now supported
- NOTE: this may result in logging occurring out of band for these calls if other events fire befor they settle
Update CI labels to direct jobs to correct servers
This commit is contained in:
@@ -1,57 +0,0 @@
|
||||
# One-time bootstrap for the v0.9.1 tag, whose original tag workflow failed before publishing.
|
||||
when:
|
||||
- event: manual
|
||||
|
||||
steps:
|
||||
publish-v0-9-1:
|
||||
image: node:24-bookworm-slim
|
||||
environment:
|
||||
NPM_TOKEN:
|
||||
from_secret: gitea_package_token
|
||||
commands:
|
||||
- corepack enable
|
||||
- corepack prepare pnpm@11.0.0 --activate
|
||||
- apt-get update && apt-get install --yes --no-install-recommends ca-certificates git
|
||||
- pnpm install --frozen-lockfile
|
||||
- test "$(node -p \"require('./package.json').version\")" = "0.9.1"
|
||||
- git rev-parse --verify refs/tags/v0.9.1
|
||||
- pnpm check
|
||||
- pnpm test
|
||||
- pnpm build
|
||||
- npm config set @mifi:registry https://git.mifi.dev/api/packages/mifi/npm/
|
||||
- npm config set -- //git.mifi.dev/api/packages/mifi/npm/:_authToken "$NPM_TOKEN"
|
||||
- pnpm publish --no-git-checks
|
||||
|
||||
notify-bootstrap-failure:
|
||||
image: curlimages/curl:8.14.1
|
||||
depends_on: [publish-v0-9-1]
|
||||
environment:
|
||||
MATTERMOST_BOT_ACCESS_TOKEN:
|
||||
from_secret: mattermost_bot_access_token
|
||||
MATTERMOST_CHANNEL_ID:
|
||||
from_secret: mattermost_pushes_channel_id
|
||||
MATTERMOST_POST_API_URL:
|
||||
from_secret: mattermost_post_api_url
|
||||
commands:
|
||||
- |
|
||||
BODY=$(printf '{"channel_id":"%s","message":"[%s - Build #%s] Package bootstrap failure 💩"}' "$MATTERMOST_CHANNEL_ID" "$CI_REPO" "$CI_PIPELINE_NUMBER")
|
||||
curl --fail --show-error --silent --request POST --header 'Content-Type: application/json' --header "Authorization: Bearer $MATTERMOST_BOT_ACCESS_TOKEN" --data "$BODY" "$MATTERMOST_POST_API_URL"
|
||||
when:
|
||||
- status: [failure]
|
||||
|
||||
notify-bootstrap-success:
|
||||
image: curlimages/curl:8.14.1
|
||||
depends_on: [publish-v0-9-1]
|
||||
environment:
|
||||
MATTERMOST_BOT_ACCESS_TOKEN:
|
||||
from_secret: mattermost_bot_access_token
|
||||
MATTERMOST_CHANNEL_ID:
|
||||
from_secret: mattermost_pushes_channel_id
|
||||
MATTERMOST_POST_API_URL:
|
||||
from_secret: mattermost_post_api_url
|
||||
commands:
|
||||
- |
|
||||
BODY=$(printf '{"channel_id":"%s","message":"[%s - Build #%s] Package bootstrap success 🎉"}' "$MATTERMOST_CHANNEL_ID" "$CI_REPO" "$CI_PIPELINE_NUMBER")
|
||||
curl --fail --show-error --silent --request POST --header 'Content-Type: application/json' --header "Authorization: Bearer $MATTERMOST_BOT_ACCESS_TOKEN" --data "$BODY" "$MATTERMOST_POST_API_URL"
|
||||
when:
|
||||
- status: [success]
|
||||
@@ -3,6 +3,9 @@ when:
|
||||
- event: push
|
||||
branch: main
|
||||
|
||||
labels:
|
||||
performance: low
|
||||
|
||||
steps:
|
||||
verify:
|
||||
image: node:24-bookworm-slim
|
||||
|
||||
@@ -6,6 +6,9 @@ when:
|
||||
depends_on:
|
||||
- ci
|
||||
|
||||
labels:
|
||||
performance: high
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: woodpeckerci/plugin-git
|
||||
|
||||
Reference in New Issue
Block a user