From 10fca29e9a38c6c5a8ca61bba5c2d83524e13763 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 18 Sep 2020 10:33:48 +0200 Subject: [PATCH] Fix up docs --- README.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fd3acdf..1cda14c 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,32 @@ A robot who does backups in the swarm. +## Publishing + +If you push a commit to master, the [Drone config](./.drone.yml) will publish to [Docker Hub](https://hub.docker.com/r/decentral1se/backup-bot). + ## Usage ```yaml ---- -coming: soon +backupbot: + image: "decentral1se/backup-bot:0.0.1" + secrets: + - backup_bot_ssh_key + - db_password + configs: + - source: borgmatic_config_yml + target: /etc/borgmatic/config.yaml + environment: + - BORGBASE_REPO="g067e243@g067e243.repo.borgbase.com:repo" + - DB_HOST=mariadb + - DB_TABLE=wordpress + - DB_USER=wordpress + deploy: + mode: replicated + replicas: 0 + labels: + - "swarm.cronjob.enable=true" + - "swarm.cronjob.schedule=0 2 * * *" # "At 02:00 every night" + restart_policy: + condition: none ```