Fix pipeline related errors

This commit is contained in:
Miika Holmlund
2025-11-03 18:26:53 +02:00
parent 7ca34beeb6
commit 4dc54839a0
3 changed files with 35 additions and 25 deletions
+2 -2
View File
@@ -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
+1 -4
View File
@@ -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"