update drone to use arm runner

This commit is contained in:
techknowlogick 2020-09-27 18:08:55 +00:00
parent 6e9b6868ba
commit a77e9fbcfb
1 changed files with 46 additions and 31 deletions

View File

@ -1,38 +1,53 @@
---
kind: pipeline
name: default
platform:
os: linux
arch: arm64
workspace:
base: /srv/app
path: src
branches:
- master
steps:
- name: build
pull: always
image: plugins/hugo:latest
commands:
- apk add --no-cache make bash curl
- make clean
- make build
clone:
git:
image: plugins/git:1
depth: 50
tags: true
pipeline:
build:
image: webhippie/hugo:latest
pull: true
commands:
- make trans-copy
- make clean
- make build
publish:
image: lucap/drone-netlify:latest
pull: true
secrets: [ netlify_token ]
site_id: 05515f14-3702-4a84-9ff3-88ba90fe08dd
- name: publish
pull: always
image: techknowlogick/drone-netlify:latest
settings:
path: public/
when:
event: [ push ]
site_id: 05515f14-3702-4a84-9ff3-88ba90fe08dd
environment:
NETLIFY_TOKEN:
from_secret: netlify_token
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 ]
- 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