mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-24 16:55:08 +00:00
42 lines
1 KiB
YAML
42 lines
1 KiB
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: setup Docker compose
|
|
run: python fintechsys/docker_compose.py
|
|
|
|
- name: create site Script
|
|
run: python fintechsys/create_site.py
|
|
|