From 307a005da65d71a50012c5510b69bc954f1251b3 Mon Sep 17 00:00:00 2001 From: fal7w <147312030+fal7w@users.noreply.github.com> Date: Fri, 1 Dec 2023 17:37:26 +0300 Subject: [PATCH] Update crwate_site.yml --- .github/workflows/crwate_site.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/crwate_site.yml b/.github/workflows/crwate_site.yml index 61026a84..05e69004 100644 --- a/.github/workflows/crwate_site.yml +++ b/.github/workflows/crwate_site.yml @@ -6,7 +6,15 @@ on: jobs: rcreate_site: runs-on: self-hosted - + + services: + mariadb: + image: mariadb:latest + env: + MARIADB_ROOT_PASSWORD: fintech2023 + ports: + - 3306:3306 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 steps: - name: Checkout Repository @@ -21,6 +29,10 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt # Add this if you have any Python dependencies + + - name: Wait for services to be ready + run: | + docker compose --project-name erpnext-one exec backend bench setup production - name: Run create site Script run: python fintechsys/create_site.py