feat: add CICD pipeline

This commit is contained in:
2023-09-20 21:28:43 +02:00
parent cd307aeafd
commit e944677876
2 changed files with 30 additions and 0 deletions

30
.drone.yaml Normal file
View 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