website/.woodpecker/deploy.yaml
Oliver Traber 51d803204e
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
ci/woodpecker/cron/deploy Pipeline was successful
ci/woodpecker/manual/deploy Pipeline was successful
Allow manual and cron as pipeline triggers
2023-11-12 01:41:24 +01:00

37 lines
845 B
YAML

when:
event: [ push, manual, cron ]
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 --quiet --recursive --force minio/bluemedia-dev
- mc cp --quiet --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 ]