From 90812485235d1f5feb6b7763fb8029152fc658a9 Mon Sep 17 00:00:00 2001 From: Blallo Date: Mon, 22 Feb 2021 19:43:57 +0100 Subject: [PATCH] Fix logic --- .drone.yml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/.drone.yml b/.drone.yml index dfc3dd9..0f8161a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,3 +1,31 @@ +--- +kind: pipeline +type: docker +name: pre_clean + +platform: + os: linux + arch: amd64 + +workspace: + path: /drone + +steps: +- name: cache-init_electron-ozone + pull: if-not-exists + image: leophys/pikaur:0.3 + user: root + commands: + - rm -f /output/lock + volumes: + - name: output + path: /output + +volumes: +- name: output + host: + path: /var/builds/archlinux/output + --- kind: pipeline type: docker @@ -136,6 +164,9 @@ trigger: - push - cron +depends_on: + - pre_clean + --- kind: pipeline type: docker @@ -162,6 +193,15 @@ steps: M_SUB: "[electron-ozone] FAILURE" commands: - /sendmail.sh /output/electron-ozone.log + volumes: + - name: output + path: /output + +- name: clean_lock + pull: if-not-exists + image: leophys/pikaur:0.3 + user: root + commands: - rm -f /output/lock volumes: - name: output @@ -318,6 +358,9 @@ trigger: - push - cron +depends_on: + - pre_clean + --- kind: pipeline type: docker @@ -344,11 +387,21 @@ steps: M_SUB: "[discord_arch_electron] FAILURE" commands: - /sendmail.sh /output/discord_arch_electron.log + volumes: + - name: output + path: /output + +- name: clean_lock + pull: if-not-exists + image: leophys/pikaur:0.3 + user: root + commands: - rm -f /output/lock volumes: - name: output path: /output + volumes: - name: output host: