From 502c9a2ccc4fe7f8f283aa0b7b096735b44f5388 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Sun, 27 Oct 2024 16:13:32 +0530 Subject: [PATCH] ci: remove registry use local built image --- .github/workflows/easy-install.yml | 16 ++-------------- easy-install.py | 1 + 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/easy-install.yml b/.github/workflows/easy-install.yml index 5a216d5b..2de7882d 100644 --- a/.github/workflows/easy-install.yml +++ b/.github/workflows/easy-install.yml @@ -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: @@ -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 test@frappe.io --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 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 --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") diff --git a/easy-install.py b/easy-install.py index 2b3c24ff..99aafd4d 100755 --- a/easy-install.py +++ b/easy-install.py @@ -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", ] )