diff --git a/.gitea/workflows/backend-quality-gate.yml b/.gitea/workflows/backend-quality-gate.yml index a9343b0c..fa643207 100644 --- a/.gitea/workflows/backend-quality-gate.yml +++ b/.gitea/workflows/backend-quality-gate.yml @@ -233,6 +233,8 @@ jobs: env: GITEA_SHA: ${{ gitea.sha }} GITEA_RUN_ATTEMPT: ${{ gitea.run_attempt }} + GITEA_API_URL: ${{ gitea.api_url }} + GITEA_REPOSITORY: ${{ gitea.repository }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} REGISTRY_HOST: crpi-d1feco6itet73spp.cn-hongkong.personal.cr.aliyuncs.com IMAGE_REPOSITORY: crpi-d1feco6itet73spp.cn-hongkong.personal.cr.aliyuncs.com/copse/jyotisha diff --git a/frontend/tests/staging-backend-workflows.test.ts b/frontend/tests/staging-backend-workflows.test.ts index d6403f07..896ba5be 100644 --- a/frontend/tests/staging-backend-workflows.test.ts +++ b/frontend/tests/staging-backend-workflows.test.ts @@ -606,6 +606,8 @@ test("Gitea staging deployment is dispatched from staging after the exact push g assert.match(workflow, /WEB_IMAGE: \$\{\{ steps\.images\.outputs\.web_image \}\}/); assert.match(quality, /Dispatch exact-SHA staging deployment/); + assert.match(quality, /GITEA_API_URL: \$\{\{ gitea\.api_url \}\}/); + assert.match(quality, /GITEA_REPOSITORY: \$\{\{ gitea\.repository \}\}/); assert.match(quality, /GITEA_TOKEN: \$\{\{ secrets\.GITEA_TOKEN \}\}/); assert.match(quality, /staging advanced before deployment dispatch; refusing stale release/); assert.match(quality, /actions\/workflows\/deploy-staging\.yml\/dispatches\?return_run_details=true/);