Compare commits

...

20 Commits

Author SHA1 Message Date
Javielico 4c50e82865 chore: publish 1.2.0+1.30.5 release
continuous-integration/drone/push Build is passing Details
2024-03-18 15:00:09 +00:00
Javielico 06c0d8ffd4 chore: publish 1.1.0+1.30.5 release 2024-03-18 14:55:49 +00:00
Javielico 371fa36d15 chore: publish 1.0.0+1.30.5 release 2024-03-18 14:54:20 +00:00
p4u1 c3dbb3e4dd chore: publish 0.7.2+1.30.3 release
continuous-integration/drone/push Build is passing Details
2024-02-13 17:50:11 +01:00
3wc 8ef06543d2 chore: publish 0.7.1+1.30.1 release
continuous-integration/drone/push Build is passing Details
2023-11-20 12:55:18 +00:00
decentral1se c59446cca2 Merge pull request 'add config for backup command' (#2) from p4u1/vaultwarden:enable-backup into main
continuous-integration/drone/push Build encountered an error Details
Reviewed-on: #2
2023-11-06 23:11:14 +00:00
p4u1 88210401bd add config for backup command 2023-11-06 21:26:00 +01:00
3wc 94a6b11bc8 chore: publish 0.7.0+1.30.0 release
continuous-integration/drone/push Build encountered an error Details
2023-11-06 13:25:30 +00:00
KawaiiPunk e98ebf7440 chore: publish 0.6.0+1.29.2 release
continuous-integration/drone/push Build is passing Details
2023-10-23 13:52:59 +01:00
3wc 16e12cd293 chore: publish 0.5.1+1.29.1 release
continuous-integration/drone/push Build is passing Details
2023-08-04 15:27:39 +02:00
decentral1se d5ef9db98f chore: publish 0.5.0+1.29.0 release
continuous-integration/drone/push Build is passing Details
2023-07-20 17:01:22 +02:00
3wc 03f734de7d chore: publish 0.4.0+1.28.1 release
continuous-integration/drone/push Build is passing Details
2023-04-27 14:51:59 -04:00
3wc 28d0e9498b Switch to self-hosted stack-ssh-deploy image
continuous-integration/drone/push Build is passing Details
2023-01-21 11:46:42 -08:00
knoflook 452e40fd30 remove merge leftovers
continuous-integration/drone/push Build is passing Details
2023-01-21 11:51:35 +01:00
3wc f88255476f Add drone configs / secrets [mass update]
continuous-integration/drone/push Build is passing Details
2023-01-20 21:32:07 -08:00
3wc ba48419611 Add CI and catalogue generation [mass update]
continuous-integration/drone/push Build is failing Details
2023-01-20 10:45:03 -08:00
3wc ceb8e3981f Update abra syntax in examples (finally) [mass update] 2023-01-19 16:02:28 -08:00
knoflook 6e44ff96b1 Merge branch 'main' of https://git.coopcloud.tech/coop-cloud/vaultwarden 2022-12-01 11:29:43 +01:00
knoflook 7baac51174 add backup capability 2022-12-01 11:28:45 +01:00
3wc 07e6c27f34 chore: publish 0.2.0+1.26.0 release 2022-11-18 07:06:00 -08:00
4 changed files with 73 additions and 4 deletions

40
.drone.yml Normal file
View File

@ -0,0 +1,40 @@
---
kind: pipeline
name: deploy to swarm-test.autonomic.zone
steps:
- name: deployment
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
settings:
host: swarm-test.autonomic.zone
stack: vaultwarden
generate_secrets: true
purge: true
deploy_key:
from_secret: drone_ssh_swarm_test
networks:
- proxy
environment:
DOMAIN: vaultwarden.swarm-test.autonomic.zone
STACK_NAME: vaultwarden
LETS_ENCRYPT_ENV: production
APP_ENTRYPOINT_VERSION: v1
SECRET_ADMIN_TOKEN_VERSION: v1
trigger:
branch:
- main
---
kind: pipeline
name: generate recipe catalogue
steps:
- name: release a new version
image: plugins/downstream
settings:
server: https://build.coopcloud.tech
token:
from_secret: drone_abra-bot_token
fork: true
repositories:
- coop-cloud/auto-recipes-catalogue-json
trigger:
event: tag

View File

@ -20,8 +20,8 @@
1. Set up Docker Swarm and [`abra`]
2. Deploy [`coop-cloud/traefik`]
3. `abra app new vaultwarden`
4. `abra app YOURAPPDOMAIN config`
5. `abra app YOURAPPDOMAIN deploy`
4. `abra app config YOURAPPDOMAIN`
5. `abra app deploy YOURAPPDOMAIN`
[`abra`]: https://git.coopcloud.tech/coop-cloud/abra
[`coop-cloud/traefik`]: https://git.coopcloud.tech/coop-cloud/traefik

27
abra.sh
View File

@ -1 +1,28 @@
export APP_ENTRYPOINT_VERSION=v1
APP_DIR="app:/data"
_backup_app() {
# Copied _abra_backup_dir to make UX better on restore and backup
{
abra__src_="$1"
abra__dst_="-"
}
# shellcheck disable=SC2154
FILENAME="$(basename "$1").tar"
debug "Copying '$1' to '$FILENAME'"
silence
mkdir -p /tmp/abra
sub_app_cp > /tmp/abra/$FILENAME
unsilence
}
abra_backup_app() {
# shellcheck disable=SC2154
ARK_FILENAME="$ABRA_BACKUP_DIR/${abra__app_}_app_$(date +%F).tar.gz"
# Cant be FILENAME as that gets changed by something
_backup_app $APP_DIR
success "Backed up 'app' to $ARK_FILENAME"
}

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: vaultwarden/server:1.26.0
image: vaultwarden/server:1.30.5
networks:
- proxy
environment:
@ -39,7 +39,9 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=0.1.1+1.26.0"
- "coop-cloud.${STACK_NAME}.version=1.2.0+1.30.5"
- "backupbot.backup=true"
- "backupbot.backup.path=/data"
volumes:
vaultwarden_data: