mirror of
https://github.com/frappe/bench.git
synced 2025-01-22 22:58:31 +00:00
ci: remove registry use local built image
This commit is contained in:
parent
6c97d92917
commit
502c9a2ccc
16
.github/workflows/easy-install.yml
vendored
16
.github/workflows/easy-install.yml
vendored
@ -17,11 +17,6 @@ jobs:
|
|||||||
easy-install-setup:
|
easy-install-setup:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
services:
|
|
||||||
registry:
|
|
||||||
image: registry:2
|
|
||||||
ports:
|
|
||||||
- 5000:5000
|
|
||||||
|
|
||||||
name: Easy Install Test
|
name: Easy Install Test
|
||||||
steps:
|
steps:
|
||||||
@ -31,17 +26,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
|
|
||||||
- name: Login
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: localhost:5000
|
|
||||||
username: admin
|
|
||||||
password: secret
|
|
||||||
|
|
||||||
- name: Perform production easy install
|
- name: Perform production easy install
|
||||||
run: |
|
run: |
|
||||||
python3 ${GITHUB_WORKSPACE}/easy-install.py build --tag localhost:5000/frappe/erpnext:latest --push
|
python3 ${GITHUB_WORKSPACE}/easy-install.py build
|
||||||
python3 ${GITHUB_WORKSPACE}/easy-install.py -p -n actions_test --email test@frappe.io --image localhost:5000/frappe/erpnext --version latest
|
python3 ${GITHUB_WORKSPACE}/easy-install.py -p -n actions_test --email test@frappe.io --image custom-apps --version latest
|
||||||
docker compose -p actions_test exec backend bench version --format json
|
docker compose -p actions_test exec backend bench version --format json
|
||||||
docker compose -p actions_test exec backend bench --site site1.localhost list-apps --format json
|
docker compose -p actions_test exec backend bench --site site1.localhost list-apps --format json
|
||||||
result=$(curl -H "Host: site1.localhost" -sk https://127.0.0.1/api/method/ping | jq -r ."message")
|
result=$(curl -H "Host: site1.localhost" -sk https://127.0.0.1/api/method/ping | jq -r ."message")
|
||||||
|
@ -97,6 +97,7 @@ def write_to_env(
|
|||||||
f"LETSENCRYPT_EMAIL={email}\n",
|
f"LETSENCRYPT_EMAIL={email}\n",
|
||||||
f"SITE_ADMIN_PASS={admin_pass}\n",
|
f"SITE_ADMIN_PASS={admin_pass}\n",
|
||||||
f"SITES={quoted_sites}\n",
|
f"SITES={quoted_sites}\n",
|
||||||
|
"PULL_POLICY=missing\n",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user