diff --git a/.drone.yml b/.drone.yml index d461c1b..8e1a714 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,16 +40,20 @@ steps: - name: Package & publish image: bv11-cr01.bessems.eu/proxy/alpine/helm commands: - - | - apk add yq - | helm package ./charts/json-server - | - CHART_VERSION=$(cat ./charts/json-server/Chart.yaml | yq '.version') - curl \ - --header "Authorization: token $GIT_APIKEY" \ - --upload-file json-server-$CHART_VERSION.tgz \ - https://code.spamasaurus.com/api/packages/$GIT_USERNAME/helm/api/charts + helm plugin install https://github.com/chartmuseum/helm-push + - | + helm repo add \ + --username $GIT_USERNAME \ + --password $GIT_APIKEY \ + spamasaurus \ + https://code.spamasaurus.com/api/packages/$GIT_USERNAME/helm + - | + helm cm-push \ + spamasaurus \ + json-server-*.tgz environment: GIT_APIKEY: from_secret: git_apikey