feat: add drone config
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8cbba392f4
commit
a898dd455c
|
@ -0,0 +1,59 @@
|
||||||
|
kind: pipeline
|
||||||
|
name: testing
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
include:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: vikunja/golang-build:latest
|
||||||
|
pull: true
|
||||||
|
environment:
|
||||||
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
|
commands:
|
||||||
|
- go build .
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
image: vikunja/golang-build:latest
|
||||||
|
pull: true
|
||||||
|
environment:
|
||||||
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
|
BACKUP_FOLDER: ./backups
|
||||||
|
commands:
|
||||||
|
- go test
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: docker
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- testing
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
ref:
|
||||||
|
- refs/heads/main
|
||||||
|
- "refs/tags/**"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: fetch-tags
|
||||||
|
image: docker:git
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
|
||||||
|
- name: docker-prod
|
||||||
|
image: plugins/docker:linux-amd64
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
repo: kolaente/db-backup
|
||||||
|
tags: latest
|
||||||
|
depends_on: [ fetch-tags ]
|
|
@ -1,5 +1,7 @@
|
||||||
# Zero-Fuss Docker Database Backup
|
# Zero-Fuss Docker Database Backup
|
||||||
|
|
||||||
|
[![Build Status](https://drone.kolaente.de/api/badges/konrad/docker-db-backup/status.svg?ref=refs/heads/main)](https://drone.kolaente.de/konrad/docker-db-backup)
|
||||||
|
|
||||||
A simple tool to create backup of all databases on a host. Supports postgres and mysql/mariadb.
|
A simple tool to create backup of all databases on a host. Supports postgres and mysql/mariadb.
|
||||||
|
|
||||||
Successor to [this script](https://kolaente.dev/konrad/docker-database-backup).
|
Successor to [this script](https://kolaente.dev/konrad/docker-database-backup).
|
||||||
|
|
Loading…
Reference in New Issue