2 Commits

Author SHA1 Message Date
8355e52782 Update ghcr.io/immich-app/immich-server Docker tag to v1.135.3
All checks were successful
lint-test-helm / helm-lint (pull_request) Successful in 8s
2025-07-09 23:23:36 +00:00
ccb9c5d3f0 fix script
All checks were successful
lint-test-helm / helm-lint (push) Successful in 9s
renovate / renovate (push) Successful in 1m30s
2025-07-09 18:22:25 -05:00
2 changed files with 8 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ immich:
main: main:
image: image:
repository: ghcr.io/immich-app/immich-server repository: ghcr.io/immich-app/immich-server
tag: v1.132.3 tag: v1.135.3
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
env: env:
- name: TZ - name: TZ

View File

@@ -223,18 +223,17 @@ backup:
args: args:
- -ec - -ec
- | - |
export ONE_WEEK_AGO=$(date -d @$(( $(date +%s) - 604800 )) +%Y-%m-%d\ %H:%M:%S); export DATE_RANGE=$(date -d @$(( $(date +%s) - 1209600 )) +%Y%m%d);
export TWO_WEEK_AGO=$(date -d @$(( $(date +%s) - 1209600 )) +%Y-%m-%d\ %H:%M:%S); export FILE_MATCH="$BUCKET/cl01tl/gitea-backup-$DATE_RANGE-09-00.zip"
export TIME_RANGE="$TWO_WEEK_AGO"
echo ">> Running S3 prune for Gitea backup repository" echo ">> Running S3 prune for Gitea backup repository"
echo ">> Backups prior to '$TIME_RANGE' will be removed" echo ">> Backups prior to '$DATE_RANGE' will be removed"
echo ">> File list:" echo ">> File list:"
s3cmd ls -v ${BUCKET}/cl01tl/ s3cmd ls ${BUCKET}/cl01tl/
echo ">> Deleting ..." echo ">> Deleting ..."
s3cmd ls -v ${BUCKET}/cl01tl/ | s3cmd ls ${BUCKET}/cl01tl/ |
awk -v time_range="$TIME_RANGE" '$1 < time_range {print $4}' | awk file_match="$FILE_MATCH" '$4 < file_match {print $4}' |
while read file; while read file;
do s3cmd del -v "$file"; do s3cmd del "$file";
echo ">> Deleted $file"; echo ">> Deleted $file";
done; done;
echo ">> Completed S3 prune for Gitea backup repository" echo ">> Completed S3 prune for Gitea backup repository"