Fix logic

This commit is contained in:
sfigato 2021-02-22 19:43:57 +01:00
parent b18089c3a8
commit 9081248523
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

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 kind: pipeline
type: docker type: docker
@ -136,6 +164,9 @@ trigger:
- push - push
- cron - cron
depends_on:
- pre_clean
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@ -162,6 +193,15 @@ steps:
M_SUB: "[electron-ozone] FAILURE" M_SUB: "[electron-ozone] FAILURE"
commands: commands:
- /sendmail.sh /output/electron-ozone.log - /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 - rm -f /output/lock
volumes: volumes:
- name: output - name: output
@ -318,6 +358,9 @@ trigger:
- push - push
- cron - cron
depends_on:
- pre_clean
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@ -344,11 +387,21 @@ steps:
M_SUB: "[discord_arch_electron] FAILURE" M_SUB: "[discord_arch_electron] FAILURE"
commands: commands:
- /sendmail.sh /output/discord_arch_electron.log - /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 - rm -f /output/lock
volumes: volumes:
- name: output - name: output
path: /output path: /output
volumes: volumes:
- name: output - name: output
host: host: