Skip to content

Commit 902abe7

Browse files
committed
Importozameshchenie: support for custom webhooks instead of single healthchecks.io
1 parent bc52bca commit 902abe7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.13
1+
FROM alpine:3.16.3
22
LABEL maintainer="Fedor Borshev <fedor@borshev.com>"
33

44
RUN apk update \

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Backup PostgresSQL to S3 (supports periodic backups)
55

6-
This is a fork of [karser/postgres-backup-s3](https://github.com/karser/docker-images) with http://healthchecks.io support
6+
This is a fork of [karser/postgres-backup-s3](https://github.com/karser/docker-images) with webhook support
77

88
## Usage
99

@@ -39,7 +39,7 @@ postgres-backup:
3939
POSTGRES_USER: user
4040
POSTGRES_PASSWORD: password
4141
POSTGRES_EXTRA_OPTS: '--schema=public --blobs'
42-
HEALTHCHECKS_IO_CHECK_ID: 73968bba-011a-476b-b206-7b113af22e0c
42+
SUCCESS_WEBHOOK: https://sb-ping.ru/8pp9RGwDDPzTL2R8MRb8Ae
4343
```
4444
4545
### Automatic Periodic Backups

backup.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ echo "DB backup uploaded successfully"
6969

7070
rm db.dump
7171

72-
if [ -n $HEALTHCHECKS_IO_CHECK_ID ]; then
73-
echo "Notifying healthchecks.io"
74-
curl -m 10 --retry 5 https://hc-ping.com/$HEALTHCHECKS_IO_CHECK_ID
75-
fi
72+
if [ -n $SUCCESS_WEBHOOK ]; then
73+
echo "Notifying $SUCCESS_WEBHOOK"
74+
curl -m 10 --retry 5 $SUCCESS_WEBHOOK
75+
fi

0 commit comments

Comments
 (0)