mirror of
https://gitea.com/gitea/redirects
synced 2025-10-06 00:02:57 +02:00
switch to arm drone runner (#59)
switch to arm drone runner Reviewed-on: https://gitea.com/gitea/redirects/pulls/59 Reviewed-by: 6543 <6543@noreply.gitea.io> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
committed by
Lunny Xiao
parent
fa35da2dfe
commit
f4f70557dd
66
.drone.yml
66
.drone.yml
@@ -1,37 +1,55 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /srv/app
|
base: /srv/app
|
||||||
path: src
|
path: src
|
||||||
|
|
||||||
branches:
|
steps:
|
||||||
- master
|
- name: build
|
||||||
|
pull: always
|
||||||
clone:
|
image: plugins/hugo:latest
|
||||||
git:
|
|
||||||
image: plugins/git:1
|
|
||||||
depth: 50
|
|
||||||
tags: true
|
|
||||||
|
|
||||||
pipeline:
|
|
||||||
build:
|
|
||||||
image: webhippie/hugo:latest
|
|
||||||
pull: true
|
|
||||||
commands:
|
commands:
|
||||||
|
- apk add --no-cache make bash curl
|
||||||
- make clean
|
- make clean
|
||||||
- make build
|
- make build
|
||||||
|
|
||||||
publish:
|
- name: publish
|
||||||
image: lucap/drone-netlify:latest
|
pull: always
|
||||||
pull: true
|
image: techknowlogick/drone-netlify:latest
|
||||||
secrets: [ netlify_token ]
|
settings:
|
||||||
site_id: 43f026dd-02e6-4cd9-846c-f8a1539d3570
|
|
||||||
path: public/
|
path: public/
|
||||||
|
site_id: 43f026dd-02e6-4cd9-846c-f8a1539d3570
|
||||||
|
environment:
|
||||||
|
NETLIFY_TOKEN:
|
||||||
|
from_secret: netlify_token
|
||||||
when:
|
when:
|
||||||
event: [ push ]
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
discord:
|
- name: discord
|
||||||
|
pull: always
|
||||||
image: appleboy/drone-discord:1
|
image: appleboy/drone-discord:1
|
||||||
pull: true
|
environment:
|
||||||
secrets: [ discord_webhook_id, discord_webhook_token ]
|
DISCORD_WEBHOOK_ID:
|
||||||
|
from_secret: discord_webhook_id
|
||||||
|
DISCORD_WEBHOOK_TOKEN:
|
||||||
|
from_secret: discord_webhook_token
|
||||||
when:
|
when:
|
||||||
event: [ push, tag ]
|
event:
|
||||||
status: [ changed, failure ]
|
- push
|
||||||
|
- tag
|
||||||
|
status:
|
||||||
|
- changed
|
||||||
|
- failure
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
...
|
Reference in New Issue
Block a user