add ntfy checks

This commit is contained in:
Patrick Schratz 2024-09-01 10:59:38 +02:00
commit a6909bd1b5
Signed by: pat-s
GPG key ID: 3C6318841EF78925
3 changed files with 75 additions and 39 deletions

View file

@ -10,7 +10,7 @@ matrix:
- PLATFORM: ubuntu-2204 - PLATFORM: ubuntu-2204
steps: steps:
'Build image': - name: 'Build image'
image: woodpeckerci/plugin-docker-buildx:4.2.0 image: woodpeckerci/plugin-docker-buildx:4.2.0
secrets: [RED_HAT_DEV_PW] secrets: [RED_HAT_DEV_PW]
settings: settings:
@ -35,41 +35,27 @@ steps:
nodeSelector: nodeSelector:
kubernetes.io/arch: 'arm64' kubernetes.io/arch: 'arm64'
- name: 'ntfy'
# - name: Build image: codeberg.org/l-x/woodpecker-ntfy:1.3.1
# # image: library/docker:26.1.4-dind-alpine3.20 # agent on k8s when:
# image: alpine:3.20 # agent on VM - status: [failure]
# privileged: true settings:
# environment: url: https://ntfy.devxy.io/ci-builds
# DOCKER_HOST: tcp://docker:2375 token:
# commands: | from_secret: ntfy_token
# apk add -q --no-cache ca-certificates py3-pip make just docker-compose docker-cli-buildx title: "CI '${CI_REPO}' failed"
# just image ${PLATFORM} actions: view, Open build, ${CI_PIPELINE_URL}, clear=false;
# backend_options: click: ${CI_BUILD_LINK}
# kubernetes: message: |
# resources: Workflow: ${CI_WORKFLOW_NAME/\n//}
# requests: Commit message: ${CI_COMMIT_MESSAGE/\n//}
# memory: 500Mi Commit Author: ${CI_COMMIT_AUTHOR/\n//}
# cpu: 1000m backend_options:
# limits: kubernetes:
# memory: 800Mi resources:
# cpu: 1000m requests:
# nodeSelector: memory: 100Mi
# kubernetes.io/arch: 'arm64' cpu: 0m
limits:
# services: memory: 300Mi
# docker: cpu: 200m
# environment:
# DOCKER_TLS_CERTDIR: ""
# image: docker:26-dind
# commands: dockerd --tls=false --host=tcp://0.0.0.0:2375
# privileged: true
# ports:
# - 2375
# # volumes:
# # - ci-tmp-rwx:/tmp # agent on k8s
# backend_options:
# kubernetes:
# nodeSelector:
# kubernetes.io/arch: "arm64"
# topology.kubernetes.io/region: fsn1

View file

@ -62,3 +62,28 @@ steps:
operator: 'Equal' operator: 'Equal'
value: 'true' value: 'true'
effect: 'NoSchedule' effect: 'NoSchedule'
- name: "ntfy"
image: codeberg.org/l-x/woodpecker-ntfy:1.3.1
when:
- status: [failure]
settings:
url: https://ntfy.devxy.io/ci-builds
token:
from_secret: ntfy_token
title: "CI '${CI_REPO}' failed"
actions: view, Open build, ${CI_PIPELINE_URL}, clear=false;
click: ${CI_BUILD_LINK}
message: |
Workflow: ${CI_WORKFLOW_NAME/\n//}
Commit message: ${CI_COMMIT_MESSAGE/\n//}
Commit Author: ${CI_COMMIT_AUTHOR/\n//}
backend_options:
kubernetes:
resources:
requests:
memory: 100Mi
cpu: 0m
limits:
memory: 300Mi
cpu: 200m

View file

@ -43,3 +43,28 @@ steps:
cpu: 4000m cpu: 4000m
nodeSelector: nodeSelector:
kubernetes.io/arch: 'arm64' kubernetes.io/arch: 'arm64'
- name: "ntfy"
image: codeberg.org/l-x/woodpecker-ntfy:1.3.1
when:
- status: [failure]
settings:
url: https://ntfy.devxy.io/ci-builds
token:
from_secret: ntfy_token
title: "CI '${CI_REPO}' failed"
actions: view, Open build, ${CI_PIPELINE_URL}, clear=false;
click: ${CI_BUILD_LINK}
message: |
Workflow: ${CI_WORKFLOW_NAME/\n//}
Commit message: ${CI_COMMIT_MESSAGE/\n//}
Commit Author: ${CI_COMMIT_AUTHOR/\n//}
backend_options:
kubernetes:
resources:
requests:
memory: 100Mi
cpu: 0m
limits:
memory: 300Mi
cpu: 200m