mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-25 16:55:08 +00:00
Update setup_site.yml
This commit is contained in:
parent
2dc75abcad
commit
bc6bb5a53a
1 changed files with 21 additions and 1 deletions
20
.github/workflows/setup_site.yml
vendored
20
.github/workflows/setup_site.yml
vendored
|
|
@ -14,6 +14,25 @@ on:
|
||||||
# - completed
|
# - completed
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
which_branch:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# extract branch name
|
||||||
|
- name: Extract branch name
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
shell: bash
|
||||||
|
run: echo "::set-env name=BRANCH_NAME::$(echo ${GITHUB_REF#refs/heads/})"
|
||||||
|
id: extract_branch
|
||||||
|
|
||||||
|
# extract branch name on pull request
|
||||||
|
- name: Print branch name
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
run: echo "::set-env name=BRANCH_NAME::$(echo ${GITHUB_HEAD_REF})"
|
||||||
|
|
||||||
|
# print branch name
|
||||||
|
- name: Get branch name
|
||||||
|
run: echo 'The branch name is' $BRANCH_NAME
|
||||||
|
|
||||||
setup_sites:
|
setup_sites:
|
||||||
runs-on:
|
runs-on:
|
||||||
- self-hosted
|
- self-hosted
|
||||||
|
|
@ -24,6 +43,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Create first bench
|
- name: Create first bench
|
||||||
run: |
|
run: |
|
||||||
|
echo 'The branch name is' $BRANCH_NAME
|
||||||
cp example.env ~/gitopss/erpnext-one.env
|
cp example.env ~/gitopss/erpnext-one.env
|
||||||
sed -i 's/DB_PASSWORD=123/DB_PASSWORD=fintech2023/g' ~/gitopss/erpnext-one.env
|
sed -i 's/DB_PASSWORD=123/DB_PASSWORD=fintech2023/g' ~/gitopss/erpnext-one.env
|
||||||
sed -i 's/DB_HOST=/DB_HOST=mariadb-database/g' ~/gitopss/erpnext-one.env
|
sed -i 's/DB_HOST=/DB_HOST=mariadb-database/g' ~/gitopss/erpnext-one.env
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue