2020-04-26 11:37:01 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-04-26 11:47:39 +02:00
|
|
|
name: default
|
2020-04-26 11:37:01 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2020-04-26 11:53:19 +02:00
|
|
|
image: plugins/hugo
|
|
|
|
settings:
|
|
|
|
hugo_version: 0.69.2
|
2020-04-26 11:55:56 +02:00
|
|
|
output: public
|
2020-04-26 11:53:19 +02:00
|
|
|
validate: true
|
2020-04-26 11:37:01 +02:00
|
|
|
- name: archive
|
2020-04-26 11:47:39 +02:00
|
|
|
image: alpine
|
2020-04-26 11:37:01 +02:00
|
|
|
commands:
|
2020-04-26 11:48:30 +02:00
|
|
|
- cd public
|
|
|
|
- tar -czvf ../website-${DRONE_TAG}.tar.gz .
|
2020-04-26 11:37:01 +02:00
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
base_url: https://git.paulbsd.com
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
2020-04-26 12:02:07 +02:00
|
|
|
files: "*.tar.gz"
|
2020-04-26 11:37:01 +02:00
|
|
|
checksum:
|
|
|
|
- sha256
|
|
|
|
- sha512
|
|
|
|
when:
|
|
|
|
event: tag
|