fix(ci): pass API deployment parameters separately

This commit is contained in:
Lain Soykaf 2026-09-09 15:55:18 +04:00
commit 239ae3403b
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View file

@ -50,6 +50,9 @@ steps:
- mix local.rebar --force
- mix deps.get --only prod
- mix pleroma.openapi_spec spec.json
- |
printf 'BRANCH=stable\nSPEC_VERSION=%s\n' "$${CI_COMMIT_SHA}" > trigger-deploy-stable.params
printf 'BRANCH=develop\nSPEC_VERSION=%s\n' "$${CI_COMMIT_SHA}" > trigger-deploy-develop.params
upload-spec:
image: *artifacts_uploader_image
@ -86,8 +89,7 @@ steps:
settings:
<<: *trigger_settings
params:
- BRANCH=stable
- SPEC_VERSION=${CI_COMMIT_SHA}
- trigger-deploy-stable.params
trigger-deploy-develop:
when:
@ -98,5 +100,4 @@ steps:
settings:
<<: *trigger_settings
params:
- BRANCH=develop
- SPEC_VERSION=${CI_COMMIT_SHA}
- trigger-deploy-develop.params