Compare commits

...

2 Commits

Author SHA1 Message Date
antifallobst 06bd717dfb
fix(worker/mailcow): executing mailcow backup in the mailcow dir
Build and Deploy / build-docker (push) Successful in 5m44s Details
2023-12-17 22:04:36 +01:00
antifallobst 2a3fa4f2fc
ci/cd: tried to fix caching issue 2023-12-17 22:03:45 +01:00
2 changed files with 6 additions and 5 deletions

View File

@ -18,7 +18,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: https://github.com/actions/cache@v3
uses: https://github.com/actions/cache/restore@v3
with:
path: |
/tmp/.buildx-cache
@ -42,12 +42,12 @@ jobs:
push: true
tags: git.nerdcult.net/nerdcult/nerdcult_admin_worker:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Rotate the cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
rm -rvf /tmp/.buildx-cache
mv -v /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Deploy
env:

View File

@ -1,5 +1,5 @@
use crate::backend::backup;
use anyhow::{bail, Context, Error, Result};
use anyhow::{bail, Context, Result};
use log::{error, info};
use sqlx::SqlitePool;
use std::fs::{create_dir_all, remove_dir_all, File};
@ -70,6 +70,7 @@ fn perform_backup(backup: backup::Backup) -> Result<()> {
.arg("all")
.env("MAILCOW_BACKUP_LOCATION", &tmp)
.env("PATH", "/bin:/usr/bin:/host/usr/bin")
.current_dir(&dir)
.status()?;
if !status.success() {