mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 13:23:12 +01:00
Release 3.5.6 - See CHANGELOG.md
This commit is contained in:
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@@ -19,7 +19,6 @@ jobs:
|
|||||||
id: prep
|
id: prep
|
||||||
run: |
|
run: |
|
||||||
DOCKER_IMAGE=${GITHUB_REPOSITORY/docker-/}
|
DOCKER_IMAGE=${GITHUB_REPOSITORY/docker-/}
|
||||||
set -x
|
|
||||||
if [[ $GITHUB_REF == refs/heads/* ]]; then
|
if [[ $GITHUB_REF == refs/heads/* ]]; then
|
||||||
if [[ $GITHUB_REF == refs/heads/*/* ]] ; then
|
if [[ $GITHUB_REF == refs/heads/*/* ]] ; then
|
||||||
BRANCH="${DOCKER_IMAGE}:$(echo $GITHUB_REF | sed "s|refs/heads/||g" | sed "s|/|-|g")"
|
BRANCH="${DOCKER_IMAGE}:$(echo $GITHUB_REF | sed "s|refs/heads/||g" | sed "s|/|-|g")"
|
||||||
|
|||||||
1
.github/workflows/manual.yml
vendored
1
.github/workflows/manual.yml
vendored
@@ -19,7 +19,6 @@ jobs:
|
|||||||
id: prep
|
id: prep
|
||||||
run: |
|
run: |
|
||||||
DOCKER_IMAGE=${GITHUB_REPOSITORY/docker-/}
|
DOCKER_IMAGE=${GITHUB_REPOSITORY/docker-/}
|
||||||
set -x
|
|
||||||
if [[ $GITHUB_REF == refs/heads/* ]]; then
|
if [[ $GITHUB_REF == refs/heads/* ]]; then
|
||||||
if [[ $GITHUB_REF == refs/heads/*/* ]] ; then
|
if [[ $GITHUB_REF == refs/heads/*/* ]] ; then
|
||||||
BRANCH="${DOCKER_IMAGE}:$(echo $GITHUB_REF | sed "s|refs/heads/||g" | sed "s|/|-|g")"
|
BRANCH="${DOCKER_IMAGE}:$(echo $GITHUB_REF | sed "s|refs/heads/||g" | sed "s|/|-|g")"
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
## 3.5.6 2022-11-15 <dave at tiredofit dot ca>
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Add failure if DB_TYPE empty or malformed
|
||||||
|
|
||||||
|
|
||||||
## 3.5.5 2022-10-18 <dave at tiredofit dot ca>
|
## 3.5.5 2022-10-18 <dave at tiredofit dot ca>
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|||||||
@@ -83,4 +83,4 @@ RUN set -ex && \
|
|||||||
rm -rf /root/.cache /tmp/* /var/cache/apk/*
|
rm -rf /root/.cache /tmp/* /var/cache/apk/*
|
||||||
|
|
||||||
### S6 Setup
|
### S6 Setup
|
||||||
ADD install /
|
COPY install /
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/command/with-contenv bash
|
#!/command/with-contenv bash
|
||||||
|
|
||||||
bootstrap_variables() {
|
bootstrap_variables() {
|
||||||
|
sanity_var DB_TYPE "Set appropriate DB_TYPE"
|
||||||
case "${DB_TYPE,,}" in
|
case "${DB_TYPE,,}" in
|
||||||
couch* )
|
couch* )
|
||||||
dbtype=couch
|
dbtype=couch
|
||||||
@@ -74,12 +75,18 @@ bootstrap_variables() {
|
|||||||
sqlite* )
|
sqlite* )
|
||||||
dbtype=sqlite3
|
dbtype=sqlite3
|
||||||
;;
|
;;
|
||||||
|
* )
|
||||||
|
print_error "I don't recognize 'DB_TYPE=${DB_TYPE}' - Exitting.."
|
||||||
|
exit 99
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "${BACKUP_LOCATION,,}" = "s3" ] || [ "${BACKUP_LOCATION,,}" = "minio" ] ; then
|
if [ "${BACKUP_LOCATION,,}" = "s3" ] || [ "${BACKUP_LOCATION,,}" = "minio" ] ; then
|
||||||
file_env 'S3_KEY_ID'
|
file_env 'S3_KEY_ID'
|
||||||
file_env 'S3_KEY_SECRET'
|
file_env 'S3_KEY_SECRET'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
backup_couch() {
|
backup_couch() {
|
||||||
|
|||||||
Reference in New Issue
Block a user