feat: add CICD pipeline
This commit is contained in:
30
.drone.yaml
Normal file
30
.drone.yaml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
|
||||||
|
name: build-and-push-container
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: docker:20
|
||||||
|
commands:
|
||||||
|
- docker build -t gitea.t000-n.de/t.behrendt/backupsidecar:latest .
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
ref:
|
||||||
|
- refs/heads/main
|
||||||
|
|
||||||
|
- name: push
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: REGISTRY_USERNAME
|
||||||
|
password:
|
||||||
|
from_secret: REGISTRY_PASSWORD
|
||||||
|
repo: gitea.t000-n.de/t.behrendt/backupsidecar
|
||||||
|
tags: latest
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
ref:
|
||||||
|
- refs/heads/main
|
||||||
Reference in New Issue
Block a user