mirror of
https://github.com/OHTU-German-learning-website/OHTU-German-learning-website.git
synced 2026-10-12 19:13:51 +03:00
Fix pipeline related errors
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
DB_HOST=localhost
|
||||
DB_PORT=7741
|
||||
DB_HOST=pgtestdb
|
||||
DB_PORT=5432
|
||||
DB_USER=postgres
|
||||
DB_PASSWORD=password
|
||||
DB_NAME=postgres
|
||||
|
||||
@@ -31,9 +31,6 @@ fi
|
||||
# a difference between the schema file and the actual schema in the database
|
||||
|
||||
# Create a temporary schema file inside the container
|
||||
docker exec gradesa-db sh -c "pgmigrate dump -d postgres://ohtu:password@localhost:5432/gradesa --out /tmp/schema.sql"
|
||||
pgmigrate dump -d $DB_URL --out schema.sql
|
||||
|
||||
# Copy the schema file from the container to the local directory
|
||||
docker cp gradesa-db:/tmp/schema.sql ./schema.sql
|
||||
echo "Dumping done"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user