help/.drone.yml
Pierre-Olivier Mercier e745673dd1
All checks were successful
continuous-integration/drone/push Build is passing
Publish on S3
2022-01-18 08:14:05 +01:00

46 lines
784 B
YAML

---
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
- name: publish on s3
image: plugins/s3
settings:
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