ci: rework build_api job

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2286>
This commit is contained in:
jo 2022-12-23 16:21:07 +01:00
parent 6806132d50
commit c3722a45e3
1 changed files with 3 additions and 6 deletions

View File

@ -327,23 +327,20 @@ build_front:
build_api:
stage: build
image: bash
image: $CI_REGISTRY/funkwhale/ci/python:3.11
variables:
<<: *keep_git_files_permissions
script:
- rm -rf api/tests
- >
if [ "$CI_COMMIT_REF_NAME" == "develop" ] || [ "$CI_COMMIT_REF_NAME" == "stable" ]; then
if [[ "$CI_COMMIT_REF_NAME" =~ ^develop|stable$ ]]; then
./scripts/set-api-build-metadata.sh $CI_COMMIT_SHORT_SHA;
fi
artifacts:
name: api_${CI_COMMIT_REF_NAME}
paths:
- api
only:
- tags@funkwhale/funkwhale
- stable@funkwhale/funkwhale
- develop@funkwhale/funkwhale
deploy_docs:
stage: publish