Add an email notification to woodpecker-ci

This commit is contained in:
Nikolai Rodionov 2023-10-17 09:30:15 +02:00
parent 8ff2a03a07
commit 852ecfaf33
No known key found for this signature in database
GPG Key ID: 906851F91B1DA3EF

View File

@ -1,27 +1,24 @@
---
when: when:
event: tag event: tag
steps: steps:
build the plugin: build the plugin:
image: ubuntu:22.04 image: ubuntu:22.04
commands: commands:
- apt-get update -y - apt-get update -y
- | - |
apt-get install -y \ apt-get install -y \
build-essential libasound2 cmake \ build-essential libasound2 cmake \
fftw-dev pkg-config libx11-dev \ fftw-dev pkg-config libx11-dev \
x11-xserver-utils libxrandr-dev \ x11-xserver-utils libxrandr-dev \
libxinerama-dev libxcursor-dev \ libxinerama-dev libxcursor-dev \
libfreetype6-dev libfftw3-dev \ libfreetype6-dev libfftw3-dev \
libasound2-dev libjack-dev git libasound2-dev libjack-dev git
- git submodule update --init --recursive --progress - git submodule update --init --recursive --progress
- | - |
cmake -B build -S ./ \ cmake -B build -S ./ \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr -Wno-dev -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev
- cmake --build build - cmake --build build
prepare release assets: prepare release assets:
image: ubuntu:22.04 image: ubuntu:22.04
commands: commands:
@ -33,18 +30,29 @@ steps:
- cp -r $RELEASE_DIR/VST3/ /tmp - cp -r $RELEASE_DIR/VST3/ /tmp
- cd /tmp - cd /tmp
- | - |
zip -r paulxstretch-standalone.zip Standalone && \ zip -r paulxstretch-standalone.zip Standalone && \
mv paulxstretch-standalone.zip $DRONE_WORKSPACE/dist/ mv paulxstretch-standalone.zip $DRONE_WORKSPACE/dist/
- | - |
zip -r paulxstretch-vst3.zip VST3 && \ zip -r paulxstretch-vst3.zip VST3 && \
mv paulxstretch-vst3.zip $DRONE_WORKSPACE/dist/ mv paulxstretch-vst3.zip $DRONE_WORKSPACE/dist/
publish the release: publish the release:
image: woodpeckerci/plugin-gitea-release image: woodpeckerci/plugin-gitea-release
settings: settings:
base_url: https://git.badhouseplants.net base_url: https://git.badhouseplants.net
files: files:
- dist/* - dist/*
api_key: api_key:
from_secret: GITEA_ACCESS_TOKEN_RELEASER from_secret: GITEA_ACCESS_TOKEN_RELEASER
target: main email notification:
image: deblan/woodpecker-email
settings:
from.address: woody@badhouseplants.net
from.name: Woody Woodpecker
host: badhouseplants.net
username:
from_secret: smtp_username
password:
from_secret: smtp_password
recipients:
- allanger@badhouseplants.net
target: main