pushing to gitlab helm registry gives 403, but works before
stage: package-tools
image:
name: alpine/helm:3.9.4
entrypoint: [""]
variables:
BASE_DIR: test-tools
before_script:
- helm lint $BASE_DIR
- helm plugin install https://github.com/chartmuseum/helm-push.git
script:
- echo "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/${CI_COMMIT_REF_SLUG}"
- helm package $BASE_DIR -d $BASE_DIR
- helm repo add --username gitlab-ci-token --password $CI_JOB_TOKEN test-$CI_COMMIT_REF_SLUG ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/${CI_COMMIT_REF_SLUG}
- helm cm-push `find $BASE_DIR -name "*.tgz"` test-$CI_COMMIT_REF_SLUG --debug
artifacts:
name: Chart
paths:
- "$BASE_DIR/*.tgz"
when: on_success
tags:
- runner1
only:
changes:
- test-tools/*
giving error, this works a few days ago, gitlab status page is green
$ helm package $BASE_DIR -d $BASE_DIR
Successfully packaged chart and saved it to: test-tools/test-tools-0.1.1.tgz
$ helm repo add --username gitlab-ci-token --password $CI_JOB_TOKEN test-$CI_COMMIT_REF_SLUG ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/${CI_COMMIT_REF_SLUG}
"test-main" has been added to your repositories
$ helm cm-push `find $BASE_DIR -name "*.tgz"` test-$CI_COMMIT_REF_SLUG --debug
Pushing test-tools-0.1.1.tgz to test-main...
Error: 403: could not properly parse response JSON: {"message":"403 Forbidden"}
Edited by Michelle Torres