12 Commits

Author SHA1 Message Date
64b7d65f62 Merge pull request 'dev' (#4) from dev into master
Some checks failed
ci/woodpecker/push/build Pipeline was successful
Pipeline failed
ci/woodpecker/manual/build Pipeline failed
ci/woodpecker/cron/build Pipeline failed
Reviewed-on: #4
2023-08-15 13:16:47 +02:00
929d028a8f Update .woodpecker/build-dev.yml
All checks were successful
ci/woodpecker/pr/build Pipeline was successful
2023-08-15 13:16:08 +02:00
e0bfa7c8e6 Update .woodpecker/build.yml 2023-08-15 13:15:59 +02:00
d205703b1c Update '.woodpecker/build.yml'
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/cron/<no value> Pipeline was successful
ci/woodpecker/cron/build Pipeline failed
2023-04-04 12:11:58 +02:00
0e54e70084 Update '.woodpecker/build.yml'
Some checks failed
ci/woodpecker/push/build Pipeline failed
2023-04-04 12:07:14 +02:00
017813aef2 Update '.woodpecker/build.yml'
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/cron/build Pipeline failed
2023-03-30 14:35:27 +02:00
912fae0313 Update '.woodpecker/build.yml'
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/cron/build Pipeline was successful
2023-03-30 14:33:53 +02:00
a2c855986b Update '.woodpecker/build.yml'
All checks were successful
ci/woodpecker/cron/build Pipeline was successful
[skip ci]
2023-03-30 14:33:08 +02:00
448f7135fd Update '.woodpecker/build.yml'
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/cron/build Pipeline was successful
2023-03-19 17:32:16 +01:00
c761f3aeb9 Update '.woodpecker/build.yml'
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/cron/build Pipeline failed
2023-03-19 17:30:50 +01:00
9296bebcf8 Update 'README.md' 2023-03-19 17:20:43 +01:00
0fcb335d2d Update 'README.md' 2023-03-19 17:19:43 +01:00
3 changed files with 40 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ when:
path:
include: [ '.woodpecker/build-dev.yaml', 'build/*', 'Dockerfile' ]
pipeline:
steps:
build_and_publish:
image: woodpeckerci/plugin-docker-buildx
settings:

View File

@@ -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

View File

@@ -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