jarnat/.drone.yml

38 lines
688 B
YAML

---
kind: pipeline
type: docker
name: production
platform:
os: linux
arch: arm64
steps:
- name: build
image: klakegg/hugo:0.101.0-ext-debian-ci
commands:
- hugo --minify --environment production
- name: deploy
image: klakegg/hugo:0.101.0-ext-debian-ci
commands:
- hugo deploy --target=production
---
kind: pipeline
type: docker
name: staging
platform:
os: linux
arch: arm64
steps:
- name: build
image: klakegg/hugo:0.101.0-ext-debian-ci
commands:
- hugo --minify --buildDrafts --buildFuture --environment staging
- name: deploy
image: klakegg/hugo:0.101.0-ext-debian-ci
commands:
- hugo deploy --target=staging