This repository has been archived on 2024-07-12. You can view files and clone it, but cannot push or open issues or pull requests.
certwarden-deploy-docs/.woodpecker/deploy-cloudflare.yml

25 lines
809 B
YAML
Raw Normal View History

2024-07-04 10:30:49 +02:00
steps:
build:
image: golang:1.22-bookworm
environment:
- HUGO_VERSION=0.128.1
- TZ=Europe/Berlin
when:
- event: push
branch: [main, staging]
commands:
- wget https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_linux-amd64.deb && apt install ./hugo_extended_$${HUGO_VERSION}_linux-amd64.deb && rm -f hugo_extended_$${HUGO_VERSION}_linux-amd64.deb
- hugo --minify --destination ./public
deploy-cloudflare-production:
image: node:22-bookworm
when:
- event: push
branch: main
secrets:
- CLOUDFLARE_ACCOUNT_ID
- CLOUDFLARE_API_TOKEN
commands:
- npm install wrangler --save-dev
- npx wrangler pages deploy ./public --project-name certwarden-deploy-docs