nemunai.re/.drone.yml
Pierre-Olivier Mercier 4413af3fbb
All checks were successful
continuous-integration/drone/push Build is passing
CI/CD: Use arm64 runners
2023-04-15 17:20:01 +02:00

67 lines
1.2 KiB
YAML

---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: arm64
steps:
- name: fetch submodules
image: alpine
commands:
- apk add --no-cache git
- git submodule init
- git submodule update --recursive --remote
- name: build production
image: plugins/hugo
settings:
hugo_version: 0.91.2
validate: true
environment:
HUGO_ENV: "production"
when:
branch:
- master
- name: build drafts
image: plugins/hugo
settings:
hugo_version: 0.91.2
validate: true
buildDrafts: true
buildExpired: true
buildFuture: true
environment:
HUGO_BASEURL: https://nemunai.re/${DRONE_BRANCH//\//-}/
when:
branch:
exclude:
- master
- name: publish on s3
image: plugins/s3
settings:
endpoint: https://storage.nemunai.re
path_style: true
bucket: nemunai.re-blog
access_key:
from_secret: s3_access_key
secret_key:
from_secret: s3_secret_key
source: public/**/*
strip_prefix: public/
target: /${DRONE_BRANCH//\//-}
trigger:
branch:
exclude:
- renovate/*
event:
- cron
- push
- tag
- custom