Skip to content
Snippets Groups Projects
Commit e00e55df authored by Chris Pastl's avatar Chris Pastl
Browse files

refactor: group install_requirements, rename release_rules

parent b9522a19
No related branches found
No related tags found
1 merge request!35make test and coverage
Pipeline #7736 failed
.release-rules: &release-rules
# rule to run job on a tag-reference which has the form number.number.number (semantic versioning)
# or number.number.number-text (semantic versioning + release-name)
# and where a Dockerfile exists
- if: $CI_COMMIT_TAG =~ /^\d+[.]\d+[.]\d+$/ || $CI_COMMIT_TAG =~ /^\d+[.]\d+[.]\d+[-]\S+$/
exists:
- Dockerfile
stages:
- build
- test
......@@ -19,6 +11,14 @@ stages:
- pip install poetry
- poetry install --no-interaction
.release_rules: &release_rules
# rule to run job on a tag-reference which has the form number.number.number (semantic versioning)
# or number.number.number-text (semantic versioning + release-name)
# and where a Dockerfile exists
- if: $CI_COMMIT_TAG =~ /^\d+[.]\d+[.]\d+$/ || $CI_COMMIT_TAG =~ /^\d+[.]\d+[.]\d+[-]\S+$/
exists:
- Dockerfile
build-openapi-scheme:
stage: build
image: python:3.11-slim
......@@ -113,7 +113,7 @@ docker-push:
docker push $AURA_IMAGE_NAME:$CI_COMMIT_TAG
fi
rules:
- *release-rules
- *release_rules
# every commit on master/main or feature branch should trigger a push
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^feat/
exists:
......@@ -124,7 +124,7 @@ release_job:
needs:
- docker-push
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules: *release-rules
rules: *release_rules
script:
- echo "this will be a release when there is a tag, but tags should be protected to be only createable by maintainers."
release:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment