ci: rename jobs

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2286>
This commit is contained in:
jo 2022-12-16 02:42:53 +01:00
parent c6f235ec8c
commit 6afd960901
1 changed files with 10 additions and 15 deletions

View File

@ -130,7 +130,7 @@ find_broken_links:
--exclude-path 'docs/_templates/' --exclude-path 'docs/_templates/'
-- . || exit $? -- . || exit $?
changelog_snippet: require_changelog:
interruptible: true interruptible: true
image: alpine:3.17 image: alpine:3.17
stage: lint stage: lint
@ -161,7 +161,7 @@ lint_api:
script: script:
- make lint - make lint
eslint: lint_front:
interruptible: true interruptible: true
image: node:18-alpine image: node:18-alpine
stage: lint stage: lint
@ -254,7 +254,7 @@ test_api:
# - if: $CI_COMMIT_REF_PROTECTED == "true" # - if: $CI_COMMIT_REF_PROTECTED == "true"
# when: always # when: always
build_openapi_schema: build_api_schema:
stage: build stage: build
image: $CI_REGISTRY/funkwhale/backend-test-docker:3.11 image: $CI_REGISTRY/funkwhale/backend-test-docker:3.11
services: services:
@ -283,11 +283,11 @@ build_openapi_schema:
paths: paths:
- docs/schema.yml - docs/schema.yml
build_documentation: build_docs:
stage: build stage: build
image: python:3.11 image: python:3.11
needs: needs:
- job: build_openapi_schema - job: build_api_schema
artifacts: true artifacts: true
variables: variables:
BUILD_PATH: "../public" BUILD_PATH: "../public"
@ -360,11 +360,11 @@ build_api:
- stable@funkwhale/funkwhale - stable@funkwhale/funkwhale
- develop@funkwhale/funkwhale - develop@funkwhale/funkwhale
deploy_documentation: deploy_docs:
stage: publish stage: publish
image: alpine image: alpine
needs: needs:
- job: build_documentation - job: build_docs
artifacts: true artifacts: true
before_script: before_script:
- apk add openssh-client rsync - apk add openssh-client rsync
@ -406,13 +406,11 @@ deploy_documentation:
paths: paths:
- ~/.cargo - ~/.cargo
docker_publish_stable_release: docker_stable:
# Publish a docker image for releases
extends: .docker_publish extends: .docker_publish
rules: rules:
- if: $CI_COMMIT_TAG && $CI_COMMIT_REF_NAME =~ /^[0-9]+(.[0-9]+){1,2}$/ - if: $CI_COMMIT_TAG && $CI_COMMIT_REF_NAME =~ /^[0-9]+(.[0-9]+){1,2}$/
script: script:
# Check if this is the latest release
- ./docs/get-releases-json.py | scripts/is-docker-latest.py $CI_COMMIT_TAG - && export DOCKER_LATEST_TAG="-t $IMAGE_LATEST" || export DOCKER_LATEST_TAG=; - ./docs/get-releases-json.py | scripts/is-docker-latest.py $CI_COMMIT_TAG - && export DOCKER_LATEST_TAG="-t $IMAGE_LATEST" || export DOCKER_LATEST_TAG=;
- export major="$(echo $CI_COMMIT_REF_NAME | cut -d '.' -f 1)" - export major="$(echo $CI_COMMIT_REF_NAME | cut -d '.' -f 1)"
- export minor="$(echo $CI_COMMIT_REF_NAME | cut -d '.' -f 1,2)" - export minor="$(echo $CI_COMMIT_REF_NAME | cut -d '.' -f 1,2)"
@ -420,19 +418,16 @@ docker_publish_stable_release:
- docker buildx create --use --name A$CI_COMMIT_SHORT_SHA - docker buildx create --use --name A$CI_COMMIT_SHORT_SHA
- docker buildx build --platform $BUILD_PLATFORMS --push -t $IMAGE $DOCKER_LATEST_TAG -t $IMAGE_NAME:$major -t $IMAGE_NAME:$minor . - docker buildx build --platform $BUILD_PLATFORMS --push -t $IMAGE $DOCKER_LATEST_TAG -t $IMAGE_NAME:$major -t $IMAGE_NAME:$minor .
docker_publish_unstable_release: docker_unstable:
# Publish a docker image for releases
extends: .docker_publish extends: .docker_publish
rules: rules:
- if: $CI_COMMIT_TAG && $CI_COMMIT_REF_NAME !~ /^[0-9]+(.[0-9]+){1,2}$/ - if: $CI_COMMIT_TAG && $CI_COMMIT_REF_NAME !~ /^[0-9]+(.[0-9]+){1,2}$/
script: script:
# Check if this is the latest release
- cd $COMPONENT - cd $COMPONENT
- docker buildx create --use --name A$CI_COMMIT_SHORT_SHA - docker buildx create --use --name A$CI_COMMIT_SHORT_SHA
- docker buildx build --platform $BUILD_PLATFORMS --push -t $IMAGE . - docker buildx build --platform $BUILD_PLATFORMS --push -t $IMAGE .
docker_publish_non-release: docker_dev:
# Publish a docker image for each commit on develop
extends: .docker_publish extends: .docker_publish
only: only:
- develop@funkwhale/funkwhale - develop@funkwhale/funkwhale