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: workspace:
base: /srv/app base: /srv/app
path: src path: src
branches: steps:
- master - name: build
pull: always
image: plugins/hugo:latest
commands:
- apk add --no-cache make bash curl
- make clean
- make build
clone: - name: publish
git: pull: always
image: plugins/git:1 image: techknowlogick/drone-netlify:latest
depth: 50 settings:
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
path: public/ path: public/
when: site_id: 05515f14-3702-4a84-9ff3-88ba90fe08dd
event: [ push ] environment:
NETLIFY_TOKEN:
from_secret: netlify_token
when:
event:
- push
discord: - name: discord
image: appleboy/drone-discord:1 pull: always
pull: true image: appleboy/drone-discord:1
secrets: [ discord_webhook_id, discord_webhook_token ] environment:
when: DISCORD_WEBHOOK_ID:
event: [ push, tag ] from_secret: discord_webhook_id
status: [ changed, failure ] DISCORD_WEBHOOK_TOKEN:
from_secret: discord_webhook_token
when:
event:
- push
- tag
status:
- changed
- failure
trigger:
branch:
- master