docker-healthchecks/.drone.yml
Jeffrey C. Ollie 9bcae836f2
All checks were successful
continuous-integration/drone/push Build is passing
clean up and add migrate container
2023-04-16 22:39:23 -05:00

43 lines
1.2 KiB
YAML

---
kind: secret
name: local_username
get:
path: local
name: username
---
kind: secret
name: local_password
get:
path: local
name: password
---
kind: pipeline
type: kubernetes
name: build
steps:
- name: nixos
image: docker.io/jcollie/nixos-runner:latest
pull: always
commands:
- nix build -L .#webserver
- push-container result --repository network/healthchecks-webserver
- nix build -L .#smtpd
- push-container result --repository network/healthchecks-smtpd
- nix build -L .#sendalerts
- push-container result --repository network/healthchecks-sendalerts
- nix build -L .#maintenance
- push-container result --repository network/healthchecks-maintenance
- nix build -L .#migrate
- push-container result --repository network/healthchecks-migrate
settings:
registry: r.ocj.io
username:
from_secret: local_username
password:
from_secret: local_password
- name: notify
image: plugins/webhook
failure: ignore
settings:
urls:
- http://webhook-receiver.flux-system.svc/hook/edb4b3e16a177e035bc595a5be33c3b04b51145c7d802bddf05f27486e1dbd4d