mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-24 00:35:10 +00:00
39 lines
961 B
YAML
39 lines
961 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
|
|
|