1
0
mirror of https://gitea.com/xorm/website synced 2025-10-05 23:52:51 +02:00
This commit is contained in:
Lunny Xiao
2020-12-01 15:17:02 +08:00
parent 3028f2cbdb
commit 66688e0c7e

View File

@@ -1,28 +1,41 @@
workspace:
base: /srv/app
path: src
---
kind: pipeline
name: default
branches:
- master
platform:
os: linux
arch: amd64
clone:
git:
image: plugins/git:1
disable: true
steps:
- name: git
pull: default
image: plugins/git:1
settings:
depth: 50
tags: true
pipeline:
build:
image: webhippie/hugo:latest
pull: true
commands:
- hugo --cleanDestinationDir
- name: build
pull: always
image: webhippie/hugo:latest
commands:
- hugo --cleanDestinationDir
publish:
image: lucap/drone-netlify:latest
pull: true
secrets: [ netlify_token ]
site_id: ce2c0d0e-1f56-4ae2-84ff-bf0f3f0eb6f7
- name: publish
pull: always
image: techknowlogick/drone-netlify:latest
settings:
path: public/
when:
event: [ push ]
site_id: ce2c0d0e-1f56-4ae2-84ff-bf0f3f0eb6f7
environment:
NETLIFY_TOKEN:
from_secret: netlify_token
when:
event:
- push
trigger:
branch:
- master