frappe_docker/.github/workflows/crwate_site.yml
2023-12-01 17:37:26 +03:00

39 lines
945 B
YAML

name: create site
on:
workflow_dispatch:
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
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
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