File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 5151 run : cd eform-client && yarn install
5252 - name : Create errorShots directory
5353 run : mkdir eform-client/errorShots
54+ - name : Wait for MariaDB
55+ run : |
56+ for i in {1..30}; do
57+ if docker exec mariadb-test mysql -uroot -psecretpassword -e "SELECT 1" &>/dev/null; then
58+ echo "MariaDB is ready!"
59+ break
60+ fi
61+ echo "Waiting for MariaDB... ($i/30)"
62+ sleep 2
63+ done
5464 - name : Start the newly build Docker container
5565 id : docker-run
5666 run : docker run --name my-container -p 4200:5000 --network data microtingas/frontend-container:latest "/ConnectionString=host=mariadbtest;Database=420_Angular;user=root;password=secretpassword;port=3306;Convert Zero Datetime = true;SslMode=none;" > docker_run_log 2>&1 &
Original file line number Diff line number Diff line change 5252 if : steps.cache.outputs.cache-hit != 'true'
5353 - name : Create errorShots directory
5454 run : mkdir eform-client/errorShots
55+ - name : Wait for MariaDB
56+ run : |
57+ for i in {1..30}; do
58+ if docker exec mariadb-test mysql -uroot -psecretpassword -e "SELECT 1" &>/dev/null; then
59+ echo "MariaDB is ready!"
60+ break
61+ fi
62+ echo "Waiting for MariaDB... ($i/30)"
63+ sleep 2
64+ done
5565 - name : Start the newly build Docker container
5666 id : docker-run
5767 run : docker run --name my-container -p 4200:5000 --network data microtingas/frontend-container:latest "/ConnectionString=host=mariadbtest;Database=420_Angular;user=root;password=secretpassword;port=3306;Convert Zero Datetime = true;SslMode=none;" > docker_run_log 2>&1 &
You can’t perform that action at this time.
0 commit comments