mirror of
https://gitea.com/xorm/website
synced 2025-10-05 23:52:51 +02:00
Update
This commit is contained in:
53
.drone.yml
53
.drone.yml
@@ -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
|
||||
|
Reference in New Issue
Block a user