From e1ae5feaf656bb2c383c8def3346cabfc7084e54 Mon Sep 17 00:00:00 2001 From: linmeng <819991304@qq.com> Date: Mon, 27 Jul 2026 17:58:18 +0800 Subject: [PATCH] fix: export Gitea run context --- .gitea/workflows/backend-quality-gate.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitea/workflows/backend-quality-gate.yml b/.gitea/workflows/backend-quality-gate.yml index dc096240..878aebab 100644 --- a/.gitea/workflows/backend-quality-gate.yml +++ b/.gitea/workflows/backend-quality-gate.yml @@ -24,6 +24,8 @@ jobs: validate: runs-on: xiaoxin timeout-minutes: 30 + env: + GITEA_SHA: ${{ gitea.sha }} steps: - name: Checkout current Gitea revision run: | @@ -66,6 +68,11 @@ jobs: runs-on: xiaoxin timeout-minutes: 45 env: + GITEA_SHA: ${{ gitea.sha }} + GITEA_REF: ${{ gitea.ref }} + GITEA_EVENT_NAME: ${{ gitea.event_name }} + GITEA_RUN_NUMBER: ${{ gitea.run_number }} + GITEA_RUN_ATTEMPT: ${{ gitea.run_attempt }} REGISTRY_HOST: crpi-d1feco6itet73spp.cn-hongkong.personal.cr.aliyuncs.com IMAGE_REPOSITORY: crpi-d1feco6itet73spp.cn-hongkong.personal.cr.aliyuncs.com/copse/jyotisha DEPLOY_HOST: ${{ vars.STAGING_HOST }}