Skip to content

Commit

Permalink
Merge pull request #24 from hensur/fix-old-env-ci
Browse files Browse the repository at this point in the history
don't use old travis tag
  • Loading branch information
martin-helmich authored Apr 17, 2020
2 parents a5b6d0e + 90d54ae commit fe23cda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
12 changes: 4 additions & 8 deletions deploy/helm-chart/kubernetes-secret-generator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# apiVersion will be set to v2 as soon as Github Workflows supports Helmv2 Charts
# https://github.com/mittwald/helm-charts/blob/master/README.md#limitations
apiVersion: v1
apiVersion: v2
name: kubernetes-secret-generator
description: Controller for automatically creating random secret values

# type will be set to soon as Github Workflows supports Helmv2 Charts
# https://github.com/mittwald/helm-charts/blob/master/README.md#limitations
#type: application
type: application

version:
version: 3.0.1

appVersion:
appVersion: v3.0.1
6 changes: 3 additions & 3 deletions scripts/bump-app-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ git clone "https://${GIT_REPOSITORY}" "${TMP_DIR}"
cd "${TMP_DIR}"

## replace appVersion
sed -i "s#appVersion:.*#appVersion: ${TRAVIS_TAG}#g" "${CHART_YAML}"
sed -i "s#appVersion:.*#appVersion: ${TAG}#g" "${CHART_YAML}"

## replace chart version with current tag without 'v'-prefix
sed -i "s#version:.*#version: ${TRAVIS_TAG/v/}#g" "${CHART_YAML}"
sed -i "s#version:.*#version: ${TAG/v/}#g" "${CHART_YAML}"

## useful for debugging purposes
git status
Expand All @@ -47,7 +47,7 @@ git add -A
git status

## stage changes
git commit -m "Bump appVersion to '${TRAVIS_TAG}' and version to '${TRAVIS_TAG/v/}'"
git commit -m "Bump appVersion to '${TAG}' and version to '${TAG/v/}'"

## rebase
git pull --rebase publisher master
Expand Down

0 comments on commit fe23cda

Please sign in to comment.