mirror of
https://gitea.com/gitea/blog.git
synced 2024-06-02 01:51:24 +05:30
b3913e34e2
Co-authored-by: jolheiser <john.olheiser@gmail.com> Reviewed-on: https://gitea.com/gitea/blog/pulls/219 Reviewed-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: John Olheiser <john+gitea@jolheiser.com> Co-committed-by: John Olheiser <john+gitea@jolheiser.com>
54 lines
922 B
YAML
54 lines
922 B
YAML
---
|
|
kind: pipeline
|
|
name: default
|
|
|
|
platform:
|
|
os: linux
|
|
arch: arm64
|
|
|
|
workspace:
|
|
base: /srv/app
|
|
path: src
|
|
|
|
steps:
|
|
- name: build
|
|
pull: always
|
|
image: plugins/hugo:latest
|
|
commands:
|
|
# https://github.com/drone-plugins/drone-hugo/issues/36
|
|
- apk --no-cache upgrade libcurl && apk add --no-cache make bash curl
|
|
- make clean
|
|
- make build
|
|
|
|
- name: publish
|
|
pull: always
|
|
image: techknowlogick/drone-netlify:latest
|
|
settings:
|
|
path: public/
|
|
site_id: b3cd7cc2-68be-4467-b3a6-38f1fdfa0cfc
|
|
environment:
|
|
NETLIFY_TOKEN:
|
|
from_secret: netlify_token
|
|
when:
|
|
event:
|
|
- push
|
|
|
|
- name: discord
|
|
pull: always
|
|
image: appleboy/drone-discord:1
|
|
environment:
|
|
DISCORD_WEBHOOK_ID:
|
|
from_secret: discord_webhook_id
|
|
DISCORD_WEBHOOK_TOKEN:
|
|
from_secret: discord_webhook_token
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
status:
|
|
- changed
|
|
- failure
|
|
|
|
trigger:
|
|
branch:
|
|
- main |