ci: rework build_api job
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2286>
This commit is contained in:
parent
6806132d50
commit
c3722a45e3
|
@ -327,23 +327,20 @@ build_front:
|
||||||
|
|
||||||
build_api:
|
build_api:
|
||||||
stage: build
|
stage: build
|
||||||
image: bash
|
|
||||||
|
image: $CI_REGISTRY/funkwhale/ci/python:3.11
|
||||||
variables:
|
variables:
|
||||||
<<: *keep_git_files_permissions
|
<<: *keep_git_files_permissions
|
||||||
script:
|
script:
|
||||||
- rm -rf api/tests
|
- 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;
|
./scripts/set-api-build-metadata.sh $CI_COMMIT_SHORT_SHA;
|
||||||
fi
|
fi
|
||||||
artifacts:
|
artifacts:
|
||||||
name: api_${CI_COMMIT_REF_NAME}
|
name: api_${CI_COMMIT_REF_NAME}
|
||||||
paths:
|
paths:
|
||||||
- api
|
- api
|
||||||
only:
|
|
||||||
- tags@funkwhale/funkwhale
|
|
||||||
- stable@funkwhale/funkwhale
|
|
||||||
- develop@funkwhale/funkwhale
|
|
||||||
|
|
||||||
deploy_docs:
|
deploy_docs:
|
||||||
stage: publish
|
stage: publish
|
||||||
|
|
Loading…
Reference in New Issue