homepage/.drone.yml

19 lines
544 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
2022-05-21 17:29:21 +02:00
- tidy -imu webpagefiles/index.html
2022-05-21 16:40:34 +02:00
2022-05-21 17:29:21 +02:00
- name: Build and upload static web app
2022-05-21 16:46:09 +02:00
environment:
2022-05-21 17:29:21 +02:00
APITOKEN:
from_secret: APITOKEN
image: mcr.microsoft.com/appsvc/staticappsclient:stable
2022-05-21 16:44:46 +02:00
commands:
2022-05-21 17:32:20 +02:00
- /bin/staticsites/StaticSitesClient --apiToken $APITOKEN --outputLocation "webpagefiles" --app "/drone/src/webpagefiles" --deploymentaction "upload" --appBuildCommand "echo 1"