From d925cfc16831c4e89d03046da2e3ace392e606a4 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Wed, 10 May 2023 12:24:50 +0200 Subject: [PATCH] Package & upload chart --- .drone.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index bb6b034..4a66407 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,14 +40,19 @@ steps: - name: Package & publish image: bv11-cr01.bessems.eu/proxy/alpine/helm commands: + - | + apk add yq + - | + CHART_VERSION=$(cat ./charts/json-server/Chart.yaml | yq '.version') + echo $CHART_VERSION - | helm package ./charts/json-server - | - cat /etc/apk/repositories - # curl \ - # --header "Authorization: token $GIT_APIKEY" \ - # --upload-file json-server-$CHART_VERSION.tar \ - # https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/json-server/$CHART_VERSION/json-server-$CHART_VERSION.tgz + # cat /etc/apk/repositories + curl \ + --header "Authorization: token $GIT_APIKEY" \ + --upload-file json-server-$CHART_VERSION.tar \ + https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/json-server/$CHART_VERSION/json-server-$CHART_VERSION.tgz environment: GIT_APIKEY: from_secret: git_apikey