Skip to content
Snippets Groups Projects
Commit 177c65eb authored by Foerster, Thomas's avatar Foerster, Thomas
Browse files

Merge branch '18-ci-update' into 'main'

Update CI

Closes #18

See merge request !17
parents e93a74cc 611b304d
No related branches found
No related tags found
1 merge request!17Update CI
Pipeline #385347 passed
......@@ -15,27 +15,26 @@ variables:
lint:
#needs: []
stage: base
rules:
- if: $CI_COMMIT_REF_NAME != "main"
extends: .install_dependencies
script:
- poetry run reporting lint
only:
- branches
except:
- main
validate:
#needs: []
stage: base
rules:
- if: $CI_COMMIT_REF_NAME != "main"
extends: .install_dependencies
script:
- poetry run reporting validate
only:
- branches
except:
- main
publish:
#needs: []
stage: base
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_NAME == "main"
......@@ -49,9 +48,9 @@ publish:
- if [[ "$PREVIOUS_VERSION" != "$CURRENT_VERSION" ]]; then
pip install --upgrade pip
pip install poetry
poetry build --format wheel;
poetry config repositories.gitlab ${POETRY_REPOSITORY};
poetry publish --username gitlab-ci-token --password ${CI_JOB_TOKEN} --repository gitlab;
poetry build --format wheel
poetry config repositories.gitlab ${POETRY_REPOSITORY}
poetry publish --username gitlab-ci-token --password ${CI_JOB_TOKEN} --repository gitlab
echo "Version has changed";
else
echo "Nothing published.";
......
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