Fix logic

master
blallo 2021-02-22 19:43:57 +01:00
parent b18089c3a8
commit 9081248523
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
1 changed files with 53 additions and 0 deletions

View File

@ -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: