40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
when:
|
|
branch: master
|
|
path:
|
|
include: [ '.woodpecker/build.yml', 'build/*', 'Dockerfile' ]
|
|
|
|
pipeline:
|
|
|
|
check_base:
|
|
image: vistanarvas/container-update-checker:latest
|
|
secrets:
|
|
- source: dockerhub_token
|
|
target: docker_password
|
|
environment:
|
|
DOCKER_USERNAME: vistanarvas
|
|
BASE: alpine:latest
|
|
TARGET: vistanarvas/${CI_REPO_NAME}:latest
|
|
when:
|
|
cron: nightly
|
|
event: cron
|
|
|
|
build_and_publish:
|
|
when:
|
|
event: [push, tag, deployment, manual, cron]
|
|
cron: nightly
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
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 |