Merge pull request 'Woodpecker mail notifications and ffmpeg dependency' (#163) from saint/pyfedi:main into main

Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/163
This commit is contained in:
rimu 2024-04-18 20:02:14 +00:00
commit bc4c97995e
2 changed files with 21 additions and 1 deletions

View file

@ -8,3 +8,23 @@ steps:
username: ${CI_REPO_OWNER} username: ${CI_REPO_OWNER}
password: password:
from_secret: cb_token from_secret: cb_token
- name: mail
image: deblan/woodpecker-email
settings:
dsn:
from_secret: smtp_dsn
from:
address:
from_secret: smtp_from
name: "Woodpecker"
recipients:
from_secret: smtp_recipients
recipients_only: false
content:
subject: "[{{ pipeline.status }}] {{ repo.full_name }} ({{ commit.branch }} - {{ commit.sha[0:8] }}"
body: |
{{ commit.sha }}<br>
{{ pipeline.status }}<br>
{{ commit.author_email }}<br>
attachments:
- log/*

View file

@ -4,7 +4,7 @@ FROM --platform=$BUILDPLATFORM python:3-alpine AS builder
RUN apk update RUN apk update
RUN apk add pkgconfig RUN apk add pkgconfig
RUN apk add --virtual build-deps gcc python3-dev musl-dev tesseract-ocr tesseract-ocr-data-eng RUN apk add --virtual build-deps gcc python3-dev musl-dev tesseract-ocr tesseract-ocr-data-eng ffmpeg
WORKDIR /app WORKDIR /app
COPY . /app COPY . /app