help/.drone.yml

46 lines
784 B
YAML
Raw Normal View History

2020-11-23 12:05:09 +00:00
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: arm64
clone:
disable: true
steps:
- name: clone
image: alpine
commands:
- apk add --no-cache git
- git clone --recursive $DRONE_GIT_HTTP_URL .
- git checkout $DRONE_COMMIT
- name: build
image: plugins/hugo
settings:
hugo_version: 0.70.0
validate: true
2022-01-18 07:04:35 +00:00
- name: publish on s3
image: plugins/s3
2020-11-23 12:05:09 +00:00
settings:
2022-01-18 07:04:35 +00:00
endpoint: https://storage.nemunai.re
path_style: true
bucket: happydomain-help
access_key:
from_secret: s3_access_key
secret_key:
from_secret: s3_secret_key
source: public/**/*
strip_prefix: public/
target: /${DRONE_BRANCH//\//-}
trigger:
event:
- cron
- push
- tag