Add woodpecker pipeline
Some checks failed
ci/woodpecker/push/deploy Pipeline failed

This commit is contained in:
Oliver Traber 2023-11-07 21:14:53 +01:00
parent d914f0a03c
commit bebdf5d98e
Signed by: Bluemedia
GPG key ID: C0674B105057136C

37
.woodpecker/deploy.yaml Normal file
View file

@ -0,0 +1,37 @@
when:
event: push
branch: main
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
steps:
build:
image: hugomods/hugo:reg-base
commands:
- hugo
publish:
image: minio/mc
secrets: [ access_key, secret_key ]
commands:
- mc alias set minio https://s3.infra.bluemedia.dev $ACCESS_KEY $SECRET_KEY
- mc rm --recursive --force minio/bluemedia-dev
- mc cp --recursive public/ minio/bluemedia-dev/
notify:
image: git.bluemedia.dev/bluemedia/woodpecker-email
settings:
from:
from_secret: smtp_notify_email
host:
from_secret: smtp_notify_host
username:
from_secret: smtp_notify_username
password:
from_secret: smtp_notify_password
when:
- status: [ failure ]