2022-05-17 22:06:10 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Azure Static WebApp
|
|
|
|
|
|
|
|
steps:
|
2022-05-17 22:11:16 +02:00
|
|
|
- name: Checkout submodules
|
|
|
|
image: bitnami/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
|
2022-05-17 22:06:10 +02:00
|
|
|
- name: Build and upload static web app
|
|
|
|
environment:
|
|
|
|
APITOKEN:
|
|
|
|
from_secret: APITOKEN
|
|
|
|
HUGO_VERSION: 0.97.1
|
|
|
|
image: mcr.microsoft.com/appsvc/staticappsclient:stable
|
|
|
|
commands:
|
|
|
|
- /bin/staticsites/StaticSitesClient --apiToken $APITOKEN --outputLocation "public" --app "/drone/src" --deploymentaction "upload"
|