Skip to content

Commit 09457e9

Browse files
authored
Adding post installation check (#396)
1 parent ce3356e commit 09457e9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/pimcore-demo.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,14 @@ jobs:
8989
-e PIMCORE_INSTALL_MYSQL_PASSWORD=pimcore \
9090
-- \
9191
php vendor/bin/pimcore-install -n --mysql-host-socket=db --mysql-database=pimcore
92+
93+
# Change owner
94+
sudo chown -R www-data .
95+
96+
# Check if website is reachable
97+
response=$(docker-compose exec -T -- php bash -c 'curl -s "nginx:80"')
98+
99+
if [[ ! $response =~ "Satisfaction" ]]; then
100+
echo "Install failed, skipping build"
101+
exit 1;
102+
fi

0 commit comments

Comments
 (0)