Skip to content

解决 gitlab ci 无法主动发送邮件的问题

License

Notifications You must be signed in to change notification settings

wss434631143/email-notify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notify

解决 gitlab ci 无法主动发送邮件的问题

安装

go get github.com/hellojukay/notify

gitlab pipeline 设置如下

stages:
  - notify
  
send email:
  stage: notify
  image: hellojukay/email:1.0.2
  script:
    # 发送邮件的代码参考 https://github.com/hellojukay/notify
    - notify -smtp-port=587 -smtp-server=mail.xxx.com -smtp-user=$EMAIL_USER  -to=$RECEIVER -smtp-pass=$EMAAL_PASS -path=email.html

About

解决 gitlab ci 无法主动发送邮件的问题

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 90.0%
  • Dockerfile 6.5%
  • HTML 3.5%