Compare commits
7 commits
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 31b3b9fd24 | ||
Bruno BELANYI | 37491e91e6 | ||
Bruno BELANYI | 48dad0c962 | ||
Bruno BELANYI | a57f1cfa71 | ||
Bruno BELANYI | d30a2d7366 | ||
Bruno BELANYI | 436483aac7 | ||
Bruno BELANYI | cb62f179a3 |
27
.drone.yml
27
.drone.yml
|
@ -1,27 +0,0 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: Matrix Notifier check
|
||||
|
||||
steps:
|
||||
- name: Pre-commit checks
|
||||
commands:
|
||||
- nix flake check
|
||||
|
||||
- name: Notifiy
|
||||
commands:
|
||||
- nix run .
|
||||
environment:
|
||||
ADDRESS:
|
||||
from_secret: matrix_homeserver
|
||||
ROOM:
|
||||
from_secret: matrix_roomid
|
||||
USER:
|
||||
from_secret: matrix_username
|
||||
PASS:
|
||||
from_secret: matrix_password
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
- success
|
||||
...
|
31
.woodpecker/check.yml
Normal file
31
.woodpecker/check.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
labels:
|
||||
type: exec
|
||||
|
||||
steps:
|
||||
- name: flake check
|
||||
image: bash
|
||||
commands:
|
||||
- nix flake check
|
||||
|
||||
- name: package check
|
||||
image: bash
|
||||
commands:
|
||||
- nix build
|
||||
|
||||
- name: notifiy
|
||||
image: bash
|
||||
secrets:
|
||||
- source: matrix_password
|
||||
target: pass
|
||||
- source: matrix_homeserver
|
||||
target: address
|
||||
- source: matrix_roomid
|
||||
target: room
|
||||
- source: matrix_username
|
||||
target: user
|
||||
commands:
|
||||
- nix run .
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
- success
|
|
@ -75,7 +75,7 @@
|
|||
|
||||
matrix-notifier = pkgs.stdenvNoCC.mkDerivation rec {
|
||||
pname = "matrix-notifier";
|
||||
version = "0.3.0";
|
||||
version = "0.4.0";
|
||||
|
||||
src = ./matrix-notifier;
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ rawurlencode() {
|
|||
|
||||
default_woodpecker_message() {
|
||||
local msg="Build ${CI_PIPELINE_STATUS}"
|
||||
local woodpecker_url="${CI_SYSTEM_LINK}/${CI_REPO}/${CI_PIPELINE_NUMBER}"
|
||||
local woodpecker_url="${CI_PIPELINE_URL}"
|
||||
if [ "$FORMAT" == "true" ]; then
|
||||
msg="$msg [${CI_REPO}#${CI_COMMIT_SHA:0:8}]($woodpecker_url)"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue