itsblue-website/.drone.yml

42 lines
667 B
YAML

---
kind: pipeline
name: production
steps:
- name: build
image: klakegg/hugo:ext-alpine-ci
commands:
- hugo --minify
- name: publish
image: itsblue.dev/plugins/codeberg-pages-deploy
settings:
folder: public
ssh_key:
from_secret: gitea-ssh-key
trigger:
branch:
- main
---
kind: pipeline
name: dev
steps:
- name: build
image: klakegg/hugo:ext-alpine-ci
commands:
- hugo --config config.dev.yaml --minify
- rm public/.domains
- name: publish
image: itsblue.dev/plugins/codeberg-pages-deploy
settings:
folder: public
git_branch: pages-dev
ssh_key:
from_secret: gitea-ssh-key
trigger:
branch:
- dev