ci: update dockerfile to include data folder

This commit is contained in:
Juan Rodriguez
2024-07-12 08:50:14 +02:00
parent 3050c2b100
commit cebbd48237
5 changed files with 2730 additions and 2706 deletions
+9 -1
View File
@@ -128,8 +128,16 @@ function measure {
echo "Setup..."
docker-compose up -d
# Ensure migrations are done
if [ $? -ne 0 ]; then
echo "Failed to start Docker containers."
exit 1
fi
docker-compose exec -T app migrate
if [ $? -ne 0 ]; then
echo "Failed to run database migrations."
exit 1
fi
# Create a new user and capture the API key
output=$(docker-compose exec -T app cli --create-user=Admin)