homepage/.drone.yml

22 lines
511 B
YAML
Raw Normal View History

2020-02-01 18:58:07 +01:00
kind: pipeline
type: docker
2022-05-21 16:40:34 +02:00
name: Static KMLabz website
2020-02-01 18:58:07 +01:00
steps:
2022-05-21 16:40:34 +02:00
- name: Validate HTML
2020-02-01 18:58:07 +01:00
image: ubuntu
commands:
2020-02-01 22:10:59 +01:00
- apt-get update && apt-get install -y tidy
2020-04-16 22:37:56 +02:00
- tidy -imu index.html || true
2022-05-21 16:40:34 +02:00
- name: Deploy to Cloudflare Pages
image: node
2020-04-16 22:37:56 +02:00
settings:
2022-05-21 16:40:34 +02:00
CLOUDFLARE_ACCOUNT_ID:
from_secret: CLOUDFLARE_ACCOUNT_ID
CLOUDFLARE_API_TOKEN:
from_secret: CLOUDFLARE_API_TOKEN
commands:
- npm install wrangler --save-dev
- npx wrangler pages publish . --project-name=kmlabz-homepage