staticwebapp-blog-tormakris.../.drone.yml

19 lines
492 B
YAML
Raw Permalink Normal View History

2022-05-17 21:38:24 +02:00
kind: pipeline
type: docker
name: Azure Static WebApp
steps:
2022-05-18 18:21:20 +02:00
- name: Checkout submodules
image: bitnami/git
commands:
- git submodule update --init --recursive
2022-05-17 21:38:24 +02:00
- name: Build and upload static web app
environment:
APITOKEN:
from_secret: APITOKEN
2022-05-19 09:52:41 +02:00
HUGO_VERSION: 0.99.1
2022-05-17 21:38:24 +02:00
image: mcr.microsoft.com/appsvc/staticappsclient:stable
commands:
2022-05-17 21:48:02 +02:00
- /bin/staticsites/StaticSitesClient --apiToken $APITOKEN --outputLocation "public" --app "/drone/src" --deploymentaction "upload"