Create Build-Pipeline for Drone
This commit is contained in:
parent
be689819a1
commit
fe2960cdd8
69
drone.yaml
Normal file
69
drone.yaml
Normal file
@ -0,0 +1,69 @@
|
||||
kind: pipeline
|
||||
name: build
|
||||
type: kubernetes
|
||||
|
||||
steps:
|
||||
- name: docker_postgres_13
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: 13/Dockerfile
|
||||
registry: repo.dragse.de
|
||||
repo: harbor.dragse.it/base/postgres
|
||||
tags:
|
||||
- "1.13"
|
||||
- "1.13.5"
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
- name: docker_postgres_14
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: 14/Dockerfile
|
||||
registry: repo.dragse.de
|
||||
repo: harbor.dragse.it/base/postgres
|
||||
tags:
|
||||
- "1.14"
|
||||
- "1.14.1"
|
||||
- "latest"
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
- name: send telegram notification
|
||||
image: appleboy/drone-telegram
|
||||
settings:
|
||||
token:
|
||||
from_secret: tele_token
|
||||
to:
|
||||
from_secret: tele_user
|
||||
depends_on:
|
||||
- docker_postgres_13
|
||||
- docker_postgres_14
|
||||
|
||||
|
||||
---
|
||||
kind: secret
|
||||
name: repo_username
|
||||
get:
|
||||
path: repo-credentials
|
||||
name: username
|
||||
---
|
||||
kind: secret
|
||||
name: repo_password
|
||||
get:
|
||||
path: repo-credentials
|
||||
name: password
|
||||
|
||||
---
|
||||
kind: secret
|
||||
name: tele_user
|
||||
get:
|
||||
path: telegram-notification
|
||||
name: user_id
|
||||
---
|
||||
kind: secret
|
||||
name: tele_token
|
||||
get:
|
||||
path: telegram-notification
|
||||
name: token
|
Loading…
Reference in New Issue
Block a user