Skip to content

Commit 954d2c7

Browse files
committed
workflow test12
1 parent 1709e16 commit 954d2c7

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/bica-ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ jobs:
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
@@ -42,11 +43,9 @@ jobs:
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
@@ -59,7 +58,10 @@ jobs:
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 \

0 commit comments

Comments
 (0)