From a77e9fbcfb727173997118c43f038114fcd61204 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Sun, 27 Sep 2020 18:08:55 +0000 Subject: [PATCH] update drone to use arm runner --- .drone.yml | 77 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 46 insertions(+), 31 deletions(-) diff --git a/.drone.yml b/.drone.yml index 238a72c..aff59b4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 \ No newline at end of file