Files
docker-images/gcp-backup-upload/script.sh
Lol3rrr 505e5c4cdb
All checks were successful
Build Docker Image / nomad-scale (push) Successful in 11s
Build Docker Image / ceph-rbd-backup (push) Successful in 26s
Build Docker Image / gcp-backup-upload (push) Successful in 5m2s
Add docker image for uploading a file to gcp
2026-10-03 14:25:27 +02:00

13 lines
207 B
Bash

#!/bin/bash
set -euo pipefail
until [ -f ${FILE_TO_TRIGGER} ]
do
sleep 5
done
gcloud auth activate-service-account --key-file ${GCLOUD_KEY_FILE};
gcloud storage cp ${FILE_TO_BACKUP} ${BUCKET_URL}/;