fix(ci): provide Gitea context to deploy dispatch
This commit is contained in:
@@ -233,6 +233,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITEA_SHA: ${{ gitea.sha }}
|
GITEA_SHA: ${{ gitea.sha }}
|
||||||
GITEA_RUN_ATTEMPT: ${{ gitea.run_attempt }}
|
GITEA_RUN_ATTEMPT: ${{ gitea.run_attempt }}
|
||||||
|
GITEA_API_URL: ${{ gitea.api_url }}
|
||||||
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
REGISTRY_HOST: crpi-d1feco6itet73spp.cn-hongkong.personal.cr.aliyuncs.com
|
REGISTRY_HOST: crpi-d1feco6itet73spp.cn-hongkong.personal.cr.aliyuncs.com
|
||||||
IMAGE_REPOSITORY: crpi-d1feco6itet73spp.cn-hongkong.personal.cr.aliyuncs.com/copse/jyotisha
|
IMAGE_REPOSITORY: crpi-d1feco6itet73spp.cn-hongkong.personal.cr.aliyuncs.com/copse/jyotisha
|
||||||
|
|||||||
@@ -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(workflow, /WEB_IMAGE: \$\{\{ steps\.images\.outputs\.web_image \}\}/);
|
||||||
|
|
||||||
assert.match(quality, /Dispatch exact-SHA staging deployment/);
|
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, /GITEA_TOKEN: \$\{\{ secrets\.GITEA_TOKEN \}\}/);
|
||||||
assert.match(quality, /staging advanced before deployment dispatch; refusing stale release/);
|
assert.match(quality, /staging advanced before deployment dispatch; refusing stale release/);
|
||||||
assert.match(quality, /actions\/workflows\/deploy-staging\.yml\/dispatches\?return_run_details=true/);
|
assert.match(quality, /actions\/workflows\/deploy-staging\.yml\/dispatches\?return_run_details=true/);
|
||||||
|
|||||||
Reference in New Issue
Block a user