Fix drone pipeline
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
e11503a593
commit
116a9afc52
39
.drone.yml
39
.drone.yml
|
@ -44,7 +44,8 @@ trigger:
|
|||
- cron
|
||||
|
||||
---
|
||||
type: pipeline
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: notify_success
|
||||
|
||||
clone:
|
||||
|
@ -53,18 +54,7 @@ clone:
|
|||
steps:
|
||||
- name: notify_success
|
||||
pull: if-not-exists
|
||||
image: leophys/mailer:0.1
|
||||
commands: |
|
||||
cat << EOM \| /sendmail \
|
||||
-server-address=${M_SERVER_ADDRESS} \
|
||||
-server-port=465 \
|
||||
-user=${M_USER} \
|
||||
-password=${M_PASSWORD} \
|
||||
-from=${M_FROM} \
|
||||
-to=${M_TO} \
|
||||
-sub="[Signal|SUCCESS] $(date +%Y-%m-%d_%H:%M)" \
|
||||
Success building Signal \
|
||||
EOM
|
||||
image: leophys/mailer:0.2
|
||||
environment:
|
||||
M_SERVER_ADDRESS:
|
||||
from_secret: m_server_address
|
||||
|
@ -76,6 +66,8 @@ steps:
|
|||
from_secret: m_from
|
||||
M_TO:
|
||||
from_secret: m_to
|
||||
M_SUB: "[Signal] SUCCESS"
|
||||
M_TEXT: "Success building Signal"
|
||||
|
||||
trigger:
|
||||
status:
|
||||
|
@ -85,7 +77,8 @@ depends_on:
|
|||
- default
|
||||
|
||||
---
|
||||
type: pipeline
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: notify_failure
|
||||
|
||||
clone:
|
||||
|
@ -94,18 +87,7 @@ clone:
|
|||
steps:
|
||||
- name: notify_failure
|
||||
pull: if-not-exists
|
||||
image: leophys/mailer:0.1
|
||||
commands: |
|
||||
cat << EOM \| /sendmail \
|
||||
-server-address=${M_SERVER_ADDRESS} \
|
||||
-server-port=465 \
|
||||
-user=${M_USER} \
|
||||
-password=${M_PASSWORD} \
|
||||
-from=${M_FROM} \
|
||||
-to=${M_TO} \
|
||||
-sub="[Signal|FAIL] $(date +%Y-%m-%d_%H:%M)" \
|
||||
Failed building Signal \
|
||||
EOM
|
||||
image: leophys/mailer:0.2
|
||||
environment:
|
||||
M_SERVER_ADDRESS:
|
||||
from_secret: m_server_address
|
||||
|
@ -117,6 +99,8 @@ steps:
|
|||
from_secret: m_from
|
||||
M_TO:
|
||||
from_secret: m_to
|
||||
M_SUB: "[Signal] FAILURE"
|
||||
M_TEXT: "Failed building Signal"
|
||||
|
||||
trigger:
|
||||
status:
|
||||
|
@ -124,9 +108,8 @@ trigger:
|
|||
|
||||
depends_on:
|
||||
- default
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 128b72f8e89a1cf87ce866c0a5315744069228fc8add6683643195e9a67611e6
|
||||
hmac: 906c57103c475d0ea004105a131defa890debc5e8caa99cf5e51e44d8ab64f7f
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue