Add woodpecker pipeline
This commit is contained in:
parent
d914f0a03c
commit
aecd634e9f
43
.woodpecker/deploy.yaml
Normal file
43
.woodpecker/deploy.yaml
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
branch: main
|
||||||
|
|
||||||
|
clone:
|
||||||
|
git:
|
||||||
|
image: woodpeckerci/plugin-git
|
||||||
|
settings:
|
||||||
|
recursive: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
woodpecker-server:
|
||||||
|
environment:
|
||||||
|
- S3_ENDPOINT=https://bluemedia-dev.s3.infra.bluemedia.dev
|
||||||
|
- BUCKET_NAME=bluemedia-dev
|
||||||
|
|
||||||
|
steps:
|
||||||
|
build:
|
||||||
|
image: hugomods/hugo:reg-base
|
||||||
|
commands:
|
||||||
|
- hugo
|
||||||
|
|
||||||
|
publish:
|
||||||
|
image: minio/mc
|
||||||
|
secrets: [ access_key, secret_key ]
|
||||||
|
commands:
|
||||||
|
- mc alias set minio $S3_ENDPOINT $ACCESS_KEY $SECRET_KEY
|
||||||
|
- mc rm --recursive --force minio/$BUCKET_NAME
|
||||||
|
- mc cp --recursive public/ minio/$BUCKET_NAME/
|
||||||
|
|
||||||
|
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 ]
|
Loading…
Reference in a new issue