From 9b2e76c9cff05f5536f5b0e1bb3e54400e9d6088 Mon Sep 17 00:00:00 2001 From: lafriks Date: Mon, 21 Dec 2020 10:05:42 +0800 Subject: [PATCH] Move chart version to drone build using tag (#93) Move chart version to drone build using tag Merge branch 'master' into feat/chart_version Co-authored-by: Lauris BH Co-authored-by: techknowlogick Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/93 Reviewed-by: luhahn Reviewed-by: techknowlogick Co-Authored-By: lafriks Co-Committed-By: lafriks --- .drone.yml | 6 +++--- Chart.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1d711b1..6840a4e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,19 +41,19 @@ trigger: steps: - name: generate-chart - pull: default + pull: always image: alpine:3.12 commands: - apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm - helm dependency update - - helm package ./ + - helm package --version "${DRONE_TAG##v}" ./ - mkdir gitea - mv gitea*.tgz gitea/ - wget -O gitea/index.yaml https://dl.gitea.io/charts/index.yaml - helm repo index gitea/ --url https://dl.gitea.io/charts --merge gitea/index.yaml - name: upload-chart - pull: default + pull: always image: plugins/s3:latest settings: bucket: releases diff --git a/Chart.yaml b/Chart.yaml index 19ff242..bd73b73 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: gitea description: Gitea Helm chart for Kubernetes type: application -version: 2.1.3 +version: 0.0.0 appVersion: 1.13.0 icon: https://docs.gitea.io/images/gitea.png