Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 64b7d65f62 | |||
| 929d028a8f | |||
| e0bfa7c8e6 | |||
| d205703b1c | |||
| 0e54e70084 | |||
| 017813aef2 | |||
| 912fae0313 | |||
| a2c855986b | |||
| 448f7135fd | |||
| c761f3aeb9 | |||
| 9296bebcf8 | |||
| 0fcb335d2d |
@@ -4,7 +4,7 @@ when:
|
||||
path:
|
||||
include: [ '.woodpecker/build-dev.yaml', 'build/*', 'Dockerfile' ]
|
||||
|
||||
pipeline:
|
||||
steps:
|
||||
build_and_publish:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
when:
|
||||
branch: master
|
||||
event: [push, tag, deployment, cron, manual]
|
||||
cron: nightly
|
||||
path:
|
||||
include: [ '.woodpecker/build.yml', 'build/*', 'Dockerfile' ]
|
||||
|
||||
pipeline:
|
||||
steps:
|
||||
check_base:
|
||||
image: vistanarvas/container-update-checker:latest
|
||||
secrets:
|
||||
@@ -18,12 +16,24 @@ pipeline:
|
||||
when:
|
||||
cron: nightly
|
||||
event: cron
|
||||
|
||||
build_and_publish:
|
||||
when:
|
||||
event: [push, tag, deployment, manual, cron]
|
||||
cron: nightly
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
username: vistanarvas
|
||||
password:
|
||||
from_secret: DOCKERHUB_TOKEN
|
||||
context: ./build
|
||||
repo: vistanarvas/${CI_REPO_NAME}
|
||||
repo: vistanarvas/msmtp,git.narvas.tech/vista/msmtp
|
||||
auto_tag: true
|
||||
context: ./build
|
||||
logins:
|
||||
# Default DockerHub login
|
||||
- registry: https://index.docker.io/v1/
|
||||
username: vistanarvas
|
||||
password:
|
||||
from_secret: DOCKERHUB_TOKEN
|
||||
# Additional Gitea login
|
||||
- registry: https://git.narvas.tech
|
||||
username: vista
|
||||
password:
|
||||
from_secret: GITEA_TOKEN
|
||||
22
README.md
22
README.md
@@ -39,7 +39,7 @@ all of these are optinal but when uses the overwrite the counterpart variable
|
||||
|
||||
## Writing the email
|
||||
|
||||
There a 2 ways to write the actual email
|
||||
There are 2 ways to write the actual email
|
||||
### the first way
|
||||
provide the `TO_ADDRESSES` and `SUBJECT` and `MESSAGE` environment variables
|
||||
this is a very basic and simple way to write the email
|
||||
@@ -56,6 +56,26 @@ Subject: The subject (followd by a empty line)
|
||||
This is the first like of the body
|
||||
```
|
||||
|
||||
## CI example
|
||||
|
||||
```yml
|
||||
pipeline:
|
||||
send_mail:
|
||||
image: vistanarvas/msmtp
|
||||
secrets:
|
||||
- source: email_password
|
||||
target: SMTP_PASSWORD
|
||||
- source: email_user
|
||||
target: SMTP_USER
|
||||
- source: email_user
|
||||
target: SMTP_FROM
|
||||
environment:
|
||||
- SMTP_HOST=smtp.gamil.com
|
||||
- TO_ADDRESSES=alice@gmail.com, bob@hotmail.com
|
||||
- SUBJECT=title of the email
|
||||
- MESSAGE=body of the email
|
||||
```
|
||||
|
||||
## Defaults for popular mail servers
|
||||
if its not on the list figger it out yourself *and make a pull request*
|
||||
tip: search for your servers imap clent settings usually it also lists smtp settings
|
||||
|
||||
Reference in New Issue
Block a user