File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 -e POSTGRES_DB=mydatabase \
5959 postgres:15
6060
61-
6261 - name : Wait for Postgres to be ready (container-based)
6362 run : |
6463 for i in {1..30}; do
7069 echo "Postgres did not become ready in time"
7170 exit 1
7271
73-
7472 - name : Populate database with sample data
7573 run : |
76- sleep 10
7774 docker run --rm --network bica-net \
7875 -e PGPASSWORD=mypass \
7976 postgres:15 \
@@ -120,7 +117,6 @@ jobs:
120117 ON CONFLICT DO NOTHING;
121118 "
122119
123-
124120 - name : Prepare backup folder
125121 run : mkdir -p ./backups
126122
@@ -143,7 +139,7 @@ jobs:
143139 run : |
144140 ls -lh ./backups
145141 tar -xzf ./backups/*.tar.gz -C ./backups
146- head -20 ./backups/db_backup.sql
142+ head -40 ./backups/db_backup.sql
147143
148144 - name : Cleanup
149145 run : |
@@ -188,10 +184,8 @@ jobs:
188184 echo "Postgres did not become ready in time"
189185 exit 1
190186
191-
192187 - name : Populate database with sample data
193188 run : |
194- sleep 10
195189 docker run --rm --network bica-net \
196190 -e PGPASSWORD=mypass \
197191 postgres:15 \
@@ -238,8 +232,6 @@ jobs:
238232 ON CONFLICT DO NOTHING;
239233 "
240234
241-
242-
243235 - name : Prepare backup folder
244236 run : mkdir -p ./backups
245237
@@ -297,7 +289,7 @@ jobs:
297289 - name : Extract decrypted tarball and show pg_dump head
298290 run : |
299291 tar -xzf ./backups/*.tar.gz -C ./backups
300- head -20 ./backups/db_backup.sql
292+ head -40 ./backups/db_backup.sql
301293
302294 docker-publish :
303295 name : Push to Docker Hub
You can’t perform that action at this time.
0 commit comments