generated from tyler/Generic-Template
Add drone.yml
This commit is contained in:
parent
3e5fa5139d
commit
f8043e99f1
45
.drone.yml
45
.drone.yml
@ -1,13 +1,40 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build-and-release
|
name: build-container
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build-and-push
|
||||||
image: alpine
|
image: plugins/docker
|
||||||
commands:
|
settings:
|
||||||
- echo "Build your code!"
|
repo: git.clortox.com/infrastructure/gluttony-cluster-postgresql
|
||||||
- name: release
|
registry: git.clortox.com
|
||||||
image: alpine
|
username:
|
||||||
commands:
|
from_secret: gitea_docker_username
|
||||||
- echo "Release your code!"
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user