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
32+ # volume removido para evitar problemas de permissão
33+ # volumes:
34+ # - ./pgdata:/var/lib/postgresql/data
3435
3536 steps :
3637 - name : Checkout repo
4243 - name : Build backup container
4344 run : docker build -t $IMAGE_NAME:$TAG .
4445
45- - name : Prepare pgdata and backups folders
46+ - name : Prepare folders
4647 run : |
47- mkdir -p ./pgdata
4848 mkdir -p ./backups
49- chmod 777 ./pgdata
5049 chmod 777 ./backups
5150
5251 - name : Wait for Postgres to be ready on localhost
5958 echo "Postgres did not become ready in time"
6059 exit 1
6160
62- - name : Run backup script test
61+ - name : Test connection to Postgres
62+ run : pg_isready -h localhost -p 5432 -U myuser
63+
64+ - name : Run backup script test (verboso)
6365 run : |
6466 docker run --rm \
6567 -e DB_HOST=localhost \
You can’t perform that action at this time.
0 commit comments