File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 --health-interval 10s
3030 --health-timeout 5s
3131 --health-retries 5
32+ volumes :
33+ - ./pgdata:/var/lib/postgresql/data
3234
3335 steps :
3436 - name : Checkout repo
4042 - name : Build backup container
4143 run : docker build -t $IMAGE_NAME:$TAG .
4244
45+ - name : Prepare pgdata and backups folders
46+ run : |
47+ mkdir -p ./pgdata
48+ mkdir -p ./backups
49+ chmod 777 ./pgdata
50+ chmod 777 ./backups
51+
4352 - name : Wait for Postgres to be ready on localhost
4453 run : |
4554 for i in {1..30}; do
5261
5362 - name : Run backup script test
5463 run : |
55- mkdir -p ./backups
5664 docker run --rm \
5765 -e DB_HOST=localhost \
5866 -e DB_PORT=5432 \
Original file line number Diff line number Diff line change 11#! /bin/bash
2- set -e
2+ set -euxo pipefail
3+ echo " debugG"
4+
35
46# Environment Variables
57DB_HOST=${DB_HOST:- postgres-db}
You can’t perform that action at this time.
0 commit comments