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 @@
.vscode
venv
.DS_Store
.idea
\ No newline at end of file
.idea
dist
\ No newline at end of file
......@@ -18,16 +18,8 @@ test:
upload:
stage: deploy
needs: ['test', ]
image: harbor.pasteur.fr/kube-system/helm-kubectl:3.4.0
image: python:3.11
script:
- CHART_VERSION=$(helm show chart shiny-server | grep version | cut -d' ' -f2)
- CHART_NAME=$(helm show chart shiny-server | grep name | cut -d' ' -f2)
- |
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
- pip install -r requirements-dev.txt
- python setup.py sdist
- python -m twine upload --verbose --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
setuptools
twine
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment