瀏覽代碼

Update pipeline notify

master
IamTheFij 5 月之前
父節點
當前提交
eb7cdb0d1f
共有 1 個文件被更改,包括 26 次插入14 次删除
  1. +26
    -14
      .drone.yml

+ 26
- 14
.drone.yml 查看文件

@ -24,19 +24,6 @@ steps:
# - apk add make bash
# - make itest
- name: notify
image: drillster/drone-email
settings:
host:
from_secret: SMTP_HOST # pragma: whitelist secret
username:
from_secret: SMTP_USER # pragma: whitelist secret
password:
from_secret: SMTP_PASS # pragma: whitelist secret
from: drone@iamthefij.com
when:
status: [changed, failure]
---
kind: pipeline
name: publish
@ -54,7 +41,7 @@ trigger:
steps:
- name: build
image: golang:1.12
image: golang:1.15
environment:
VERSION: ${DRONE_TAG:-${DRONE_COMMIT}}
commands:
@ -109,3 +96,28 @@ steps:
from_secret: docker_username
password:
from_secret: docker_password
---
kind: pipeline
name: notify
depends_on:
- test
- publish
trigger:
status:
- failure
steps:
- name: notify
image: drillster/drone-email
settings:
host:
from_secret: SMTP_HOST # pragma: whitelist secret
username:
from_secret: SMTP_USER # pragma: whitelist secret
password:
from_secret: SMTP_PASS # pragma: whitelist secret
from: drone@iamthefij.com

Loading…
取消
儲存