Skip to content

Commit 31dcc71

Browse files
committed
workflow test10
1 parent a7ff0b1 commit 31dcc71

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/bica-ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
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
@@ -40,6 +42,13 @@ jobs:
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
@@ -52,7 +61,6 @@ jobs:
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 \

backup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
2-
set -e
2+
set -euxo pipefail
3+
echo "debugG"
4+
35

46
# Environment Variables
57
DB_HOST=${DB_HOST:-postgres-db}

0 commit comments

Comments
 (0)