Skip to content
Snippets Groups Projects

L2SS-1318: Publish tagged packages to gitlab

Merged Corné Lukken requested to merge publish-to-gitlab into master
1 file
+ 16
0
Compare changes
  • Side-by-side
  • Inline
+ 16
0
@@ -23,6 +23,7 @@ stages:
@@ -23,6 +23,7 @@ stages:
- unit-tests
- unit-tests
- integration-tests
- integration-tests
- packaging
- packaging
 
- publish
- deploy
- deploy
trigger_prepare:
trigger_prepare:
@@ -403,6 +404,21 @@ wheel_packaging:
@@ -403,6 +404,21 @@ wheel_packaging:
- cd tangostationcontrol
- cd tangostationcontrol
- tox -e build
- tox -e build
 
publish_on_gitlab:
 
stage: publish
 
environment: gitlab
 
needs:
 
- wheel_packaging
 
when: manual
 
rules:
 
- if: $CI_COMMIT_TAG
 
variables:
 
TWINE_PASSWORD: ${CI_JOB_TOKEN}
 
TWINE_USERNAME: gitlab-ci-token
 
script:
 
- echo "run twine for gitlab"
 
- python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi tangostationcontrol/dist/*
 
.base_deploy:
.base_deploy:
stage: deploy
stage: deploy
image: ubuntu:bionic
image: ubuntu:bionic
Loading