1
0
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:
techknowlogick
2020-07-19 03:53:47 +00:00
committed by Lunny Xiao
parent fa35da2dfe
commit f4f70557dd

View File

@@ -1,37 +1,55 @@
---
kind: pipeline
name: default
platform:
os: linux
arch: arm64
workspace:
base: /srv/app
path: src
branches:
steps:
- name: build
pull: always
image: plugins/hugo:latest
commands:
- 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: 43f026dd-02e6-4cd9-846c-f8a1539d3570
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:
- master
clone:
git:
image: plugins/git:1
depth: 50
tags: true
pipeline:
build:
image: webhippie/hugo:latest
pull: true
commands:
- make clean
- make build
publish:
image: lucap/drone-netlify:latest
pull: true
secrets: [ netlify_token ]
site_id: 43f026dd-02e6-4cd9-846c-f8a1539d3570
path: public/
when:
event: [ push ]
discord:
image: appleboy/drone-discord:1
pull: true
secrets: [ discord_webhook_id, discord_webhook_token ]
when:
event: [ push, tag ]
status: [ changed, failure ]
...