Fix logic
This commit is contained in:
parent
b18089c3a8
commit
9081248523
53
.drone.yml
53
.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
|
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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user