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
|
2022-05-21 17:12:27 +02:00
|
|
|
- tidy -imu webpagefiles/index.html || true
|
2022-05-21 16:40:34 +02:00
|
|
|
|
|
|
|
- name: Deploy to Cloudflare Pages
|
|
|
|
image: node
|
2022-05-21 16:46:09 +02:00
|
|
|
environment:
|
2022-05-21 16:40:34 +02:00
|
|
|
CLOUDFLARE_ACCOUNT_ID:
|
|
|
|
from_secret: CLOUDFLARE_ACCOUNT_ID
|
|
|
|
CLOUDFLARE_API_TOKEN:
|
|
|
|
from_secret: CLOUDFLARE_API_TOKEN
|
2022-05-21 16:44:46 +02:00
|
|
|
commands:
|
2022-05-21 17:12:27 +02:00
|
|
|
- npm install -g wrangler
|
2022-05-21 17:13:35 +02:00
|
|
|
- wrangler pages publish webpagefiles --project-name=kmlabz-homepage --branch=master --commit-dirty=true
|