[cicd] drone -> woodpecker

This commit is contained in:
SouthFox 2023-06-07 20:26:39 +08:00
parent 2a4847427d
commit 0219625266
2 changed files with 27 additions and 30 deletions

View file

@ -1,30 +0,0 @@
kind: pipeline
name: build
steps:
- name: fix link
image: bash
commands:
- bash fix.sh
- name: build
image: klakegg/hugo:alpine
commands:
- hugo
- name: render links
image: python:3.10.6
commands:
- pip install beautifulsoup4 lxml
- python soup.py
- name: deploy
image: node
environment:
CLOUDFLARE_API_TOKEN:
from_secret: api_token
CLOUDFLARE_ACCOUNT_ID:
from_secret: account_id
commands:
- npm install -g wrangler
- npx wrangler pages deploy public --project-name garden --commit-dirty=true

27
.woodpecker.yml Normal file
View file

@ -0,0 +1,27 @@
pipeline:
fix-link:
image: bash
commands:
- bash fix.sh
build:
image: klakegg/hugo:alpine
commands:
- hugo
render-links:
image: python:3.10.6
commands:
- pip install beautifulsoup4 lxml
- python soup.py
deploy:
image: node
settings:
CLOUDFLARE_API_TOKEN:
from_secret: api_token
CLOUDFLARE_ACCOUNT_ID:
from_secret: account_id
commands:
- npm install -g wrangler
- npx wrangler pages deploy public --project-name garden --commit-dirty=true