mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-25 16:55:08 +00:00
Update build_system_image.yml
This commit is contained in:
parent
f094d4eb5f
commit
5e9ec8707e
1 changed files with 8 additions and 8 deletions
16
.github/workflows/build_system_image.yml
vendored
16
.github/workflows/build_system_image.yml
vendored
|
|
@ -46,7 +46,8 @@ jobs:
|
||||||
cp example.env ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
cp example.env ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
||||||
sed -i 's/FRAPPE_SITE_NAME_HEADER=/FRAPPE_SITE_NAME_HEADER=${{ github.event.pull_request.head.ref }}/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
sed -i 's/FRAPPE_SITE_NAME_HEADER=/FRAPPE_SITE_NAME_HEADER=${{ github.event.pull_request.head.ref }}/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
||||||
echo "PORTS=$port1" >> ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
echo "PORTS=$port1" >> ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
||||||
sed -i 's/DBPASSWORD=/DP=DBPASSWORD=${{ vars.MARIADB_PASSWORD }}/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
sed -i 's/DB_PASSWORD=123/DB_PASSWORD=${{ vars.MARIADB_PASSWORD }}/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
||||||
|
# sed -i 's/DBPASSWORD=/DP=DBPASSWORD=${{ vars.MARIADB_PASSWORD }}/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
||||||
# sed -i 's/PORTS=/PORTS= $port1 /g' ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
# sed -i 's/PORTS=/PORTS= $port1 /g' ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
||||||
# sed -i 's/DB_PASSWORD=123/DB_PASSWORD=${{ vars.MARIADB_PASSWORD }}/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
# sed -i 's/DB_PASSWORD=123/DB_PASSWORD=${{ vars.MARIADB_PASSWORD }}/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
||||||
# sed -i 's/DB_HOST=/DB_HOST=mariadb-database/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
# sed -i 's/DB_HOST=/DB_HOST=mariadb-database/g' ~/gitops/${{ github.event.pull_request.head.ref }}.env
|
||||||
|
|
@ -59,19 +60,18 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
docker-compose --project-name ${{ github.event.pull_request.head.ref }} \
|
docker-compose --project-name ${{ github.event.pull_request.head.ref }} \
|
||||||
--env-file ~/gitops/${{ github.event.pull_request.head.ref }}.env \
|
--env-file ~/gitops/${{ github.event.pull_request.head.ref }}.env \
|
||||||
-f pwd.yml up -d
|
-f pwd.yml config > ~/gitops/${{ github.event.pull_request.head.ref }}.yaml
|
||||||
# config > ~/gitops/${{ github.event.pull_request.head.ref }}.yaml
|
|
||||||
|
|
||||||
|
|
||||||
# - name: Deploy the container
|
# - name: Deploy the container
|
||||||
# run: |
|
# run: |
|
||||||
# docker-compose --project-name ${{ github.event.pull_request.head.ref }} -f pwd.yml up -d
|
# docker-compose --project-name ${{ github.event.pull_request.head.ref }} -f ~/gitops/${{ github.event.pull_request.head.ref }}.yaml up -d
|
||||||
|
|
||||||
|
|
||||||
- name: Create the site
|
# - name: Create the site
|
||||||
run: |
|
# run: |
|
||||||
docker-compose --project-name ${{ github.event.pull_request.head.ref }} exec -T backend \
|
# docker-compose --project-name ${{ github.event.pull_request.head.ref }} exec -T backend \
|
||||||
bench new-site --no-mariadb-socket --db-root-password=${{ vars.MARIADB_PASSWORD }} --db-root-password=${{ vars.MARIADB_PASSWORD }} --install-app erpnext --set-default ${{ github.event.pull_request.head.ref }}
|
# bench new-site --no-mariadb-socket --db-root-password=${{ vars.MARIADB_PASSWORD }} --db-root-password=${{ vars.MARIADB_PASSWORD }} --install-app erpnext --set-default ${{ github.event.pull_request.head.ref }}
|
||||||
# bench new-site --no-mariadb-socket --db-root-password ${{ vars.MARIADB_PASSWORD }} --install-app hrms --set-default \
|
# bench new-site --no-mariadb-socket --db-root-password ${{ vars.MARIADB_PASSWORD }} --install-app hrms --set-default \
|
||||||
# --install-app rule_management --install-app remittance_base --install-app remittance --install-app bulk_remittance --install-app remittance_stellar_integration \
|
# --install-app rule_management --install-app remittance_base --install-app remittance --install-app bulk_remittance --install-app remittance_stellar_integration \
|
||||||
# --install-app client_account_management --install-app teller_for_erpnext --install-app teller_for_agent \
|
# --install-app client_account_management --install-app teller_for_erpnext --install-app teller_for_agent \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue