Add drone.yml

This commit is contained in:
Tyler Perkins 2024-04-07 14:30:39 -04:00
parent 3e5fa5139d
commit f8043e99f1
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8

View File

@ -1,13 +1,40 @@
kind: pipeline
type: docker
name: build-and-release
name: build-container
steps:
- name: build
image: alpine
commands:
- echo "Build your code!"
- name: release
image: alpine
commands:
- echo "Release your code!"
- name: build-and-push
image: plugins/docker
settings:
repo: git.clortox.com/infrastructure/gluttony-cluster-postgresql
registry: git.clortox.com
username:
from_secret: gitea_docker_username
password:
from_secret: gitea_docker_password
tags:
- latest
- ${DRONE_TAG}
when:
event:
- tag
- name: notify
image: clortox/drone-ntfy
settings:
URL: https://ntfy.clortox.com
USERNAME: drone
PASSWORD:
from_secret: ntfy_password
TOPIC: drone-builds
MESSAGE: Postgresql ${DRONE_TAG} has compiled!
CLICK: https://drone.clortox.com/Infrastructure/Gluttony-Cluster-Postgresql
TITLE: Postgresql
when:
event:
- tag
trigger:
event:
- tag