Skip to content
Snippets Groups Projects
Commit 1c63a6a5 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

publish package

parent bd3da3a2
No related branches found
No related tags found
No related merge requests found
Pipeline #120269 failed
...@@ -4,4 +4,5 @@ ...@@ -4,4 +4,5 @@
.vscode .vscode
venv venv
.DS_Store .DS_Store
.idea .idea
\ No newline at end of file dist
\ No newline at end of file
...@@ -18,16 +18,8 @@ test: ...@@ -18,16 +18,8 @@ test:
upload: upload:
stage: deploy stage: deploy
needs: ['test', ] needs: ['test', ]
image: harbor.pasteur.fr/kube-system/helm-kubectl:3.4.0 image: python:3.11
script: script:
- CHART_VERSION=$(helm show chart shiny-server | grep version | cut -d' ' -f2) - pip install -r requirements-dev.txt
- CHART_NAME=$(helm show chart shiny-server | grep name | cut -d' ' -f2) - python setup.py sdist
- | - python -m twine upload --verbose --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
if [ "helm" == "${CI_COMMIT_REF_SLUG}" ]; then
export CHANNEL="stable"
else
export CHANNEL="${CI_COMMIT_REF_SLUG}"
fi
echo $CHANNEL
- helm package shiny-server
- curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@${CHART_NAME}-${CHART_VERSION}.tgz" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/${CHANNEL}/charts"
\ No newline at end of file
setuptools
twine
\ No newline at end of file
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