From c3722a45e3e1826421d760cd6efc42e88c459be8 Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 23 Dec 2022 16:21:07 +0100 Subject: [PATCH] ci: rework build_api job Part-of: --- .gitlab-ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c219c8982..356dd87d0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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