Package & upload chart
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2023-05-10 12:24:50 +02:00
parent 500b218cb8
commit d925cfc168

View File

@ -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