Commit 3da0c131 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

New CI pipeline (debug) - dynamic variable definition

parent 2d9f798c
......@@ -2,7 +2,6 @@
current_version = 0.3.2
commit = True
tag = True
tag_name = {new_version}
[bumpversion:file:setup.py]
......@@ -3,8 +3,11 @@ variables:
PYPI_PASS: SECURE
DOCKER_USER: SECURE
DOCKER_PASS: SECURE
DOCKER_IMAGE_TAG: fractalis:$CI_COMMIT_TAG
SDIST: fractalis-$CI_COMMIT_TAG.tar.gz
before_script:
- FRACTALIS_VERSION=$(grep version setup.py | grep -o "[0-9]\.[0-9]\.[0-9]")
- DOCKER_IMAGE_TAG="fractalis:$FRACTALIS_VERSION"
- SDIST=fractalis-$FRACTALIS_VERSION.tar.gz
stages:
- build_sdist
......@@ -42,7 +45,7 @@ test:
script:
- docker load -i image.tar
- >
docker run fractalis:$CI_COMMIT_TAG
docker run DOCKER_IMAGE_TAG
-e REDIS_HOST=redis -e RABBITMQ_HOST=rabbitmq
sh -c "celery worker -D -A fractalis:celery
&& pip3 install -r requirements.txt
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment