From d3609a040e3de72de6ae9742573b82b8b705aae2 Mon Sep 17 00:00:00 2001 From: gnezim Date: Mon, 27 Apr 2026 13:40:37 +0300 Subject: [PATCH] ci-deploy: drop sudo'd htpasswd step + add playwright browser install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The runner (gitea user) lacks NOPASSWD sudo, so install-htpasswd.sh would fail in CI. The htpasswd is installed once via setup-pve201.sh and only changes when basic-auth creds change — re-run setup-pve201.sh by hand if that happens. Playwright browsers aren't in the runner image; add an explicit install step before the e2e runs. --- .gitea/workflows/ci-deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci-deploy.yml b/.gitea/workflows/ci-deploy.yml index f39865d1..5ec601bf 100644 --- a/.gitea/workflows/ci-deploy.yml +++ b/.gitea/workflows/ci-deploy.yml @@ -72,10 +72,6 @@ jobs: -t "flights-web:${GITHUB_SHA:0:7}" \ . - - name: Render htpasswd + reload nginx - id: htpasswd - run: scripts/ci/install-htpasswd.sh - - name: Swap container id: swap run: scripts/ci/deploy-container.sh swap @@ -87,6 +83,10 @@ jobs: BASIC_AUTH_PASS: ${{ secrets.BASIC_AUTH_PASS }} run: scripts/ci/wait-for-url.sh https://ui-dashboard.gnerim.ru/ 30 2 + - name: Install Playwright browsers + id: playwright_install + run: pnpm exec playwright install chromium + - name: Run Playwright e2e id: e2e env: