19 lines
531 B
YAML
19 lines
531 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: Static KMLabz website
|
|
|
|
steps:
|
|
- name: Validate HTML
|
|
image: ubuntu
|
|
commands:
|
|
- apt-get update && apt-get install -y tidy
|
|
- tidy -imu webpagefiles/index.html
|
|
|
|
- name: Build and upload static web app
|
|
environment:
|
|
APITOKEN:
|
|
from_secret: APITOKEN
|
|
image: mcr.microsoft.com/appsvc/staticappsclient:stable
|
|
commands:
|
|
- /bin/staticsites/StaticSitesClient --apiToken $APITOKEN --outputLocation "webpagefiles" --app "/drone/src" --deploymentaction "upload" --appBuildCommand "echo 1"
|