diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8208144c86f1c148e1d6dfc49a484249ac42bae7..58c6471b23dd0991893837171d8c3068f9c5e579 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -100,7 +100,6 @@ upload: image: harbor.pasteur.fr/kube-system/helm-kubectl:3.12.0 script: - CHART_VERSION=$(helm show chart shiny-k8s-toolkit-helm | grep version | cut -d' ' -f2) - - echo "CHART_VERSION=${CHART_VERSION}" > tag.env - CHART_NAME=$(helm show chart shiny-k8s-toolkit-helm | grep name | cut -d' ' -f2) - | if [ "helm" == "${CI_COMMIT_REF_SLUG}" ]; then @@ -120,23 +119,6 @@ upload: echo "Version not already published, continuing publication process" fi - 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" - artifacts: - reports: - dotenv: tag.env - - -add_tag: - only: - - helm - needs: [upload] - stage: deploy - image: registry.gitlab.com/gitlab-org/release-cli:latest - script: - - echo "Creating the release." - release: - tag_name: "v$CHART_VERSION" - name: 'Release v$CHART_VERSION' - description: ''