Skip to content

Commit

Permalink
ci: remove registry use local built image
Browse files Browse the repository at this point in the history
  • Loading branch information
revant committed Oct 27, 2024
1 parent 6c97d92 commit 502c9a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/easy-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jobs:
easy-install-setup:
runs-on: ubuntu-latest
timeout-minutes: 60
services:
registry:
image: registry:2
ports:
- 5000:5000

name: Easy Install Test
steps:
Expand All @@ -31,17 +26,10 @@ jobs:
with:
python-version: '3.8'

- name: Login
uses: docker/login-action@v3
with:
registry: localhost:5000
username: admin
password: secret

- name: Perform production easy install
run: |
python3 ${GITHUB_WORKSPACE}/easy-install.py build --tag localhost:5000/frappe/erpnext:latest --push
python3 ${GITHUB_WORKSPACE}/easy-install.py -p -n actions_test --email [email protected] --image localhost:5000/frappe/erpnext --version latest
python3 ${GITHUB_WORKSPACE}/easy-install.py build
python3 ${GITHUB_WORKSPACE}/easy-install.py -p -n actions_test --email [email protected] --image custom-apps --version latest
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
result=$(curl -H "Host: site1.localhost" -sk https://127.0.0.1/api/method/ping | jq -r ."message")
Expand Down
1 change: 1 addition & 0 deletions easy-install.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def write_to_env(
f"LETSENCRYPT_EMAIL={email}\n",
f"SITE_ADMIN_PASS={admin_pass}\n",
f"SITES={quoted_sites}\n",
"PULL_POLICY=missing\n",
]
)

Expand Down

0 comments on commit 502c9a2

Please sign in to comment.