Skip to content

Commit

Permalink
chore: Automate image bump in Chart.yaml for release process (#42)
Browse files Browse the repository at this point in the history
Jira EPMDEDP-12654
Related #42

Change-Id: I53edd31df2716315d9d255fd5713b86b7a9ec159
  • Loading branch information
Mykola Serdiuk committed Sep 29, 2023
1 parent d42e64a commit ac2db0e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ spec:
value: $(params.version)
- name: chart-path
value: $(params.chart-path)
- name: codebase-name
value: $(params.codebase-name)
workspaces:
- name: source
workspace: shared-workspace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ spec:
value: $(params.version)
- name: chart-path
value: $(params.chart-path)
- name: codebase-name
value: $(params.codebase-name)
workspaces:
- name: source
workspace: shared-workspace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
description: "Path to chart directory"
default: "deploy-templates"
type: string
- name: codebase-name
description: "Application name"
type: string
steps:
- name: update-helm-version
image: $(params.base_image)
Expand All @@ -34,6 +37,8 @@ spec:
value: "$(params.version)"
- name: CHART_PATH
value: "$(params.chart-path)"
- name: CODEBASE_NAME
value: "$(params.codebase-name)"
script: |
#!/usr/bin/env sh
set -e
Expand All @@ -46,6 +51,7 @@ spec:
echo "[TEKTON][DEBUG] Update Version and AppVersion in Chart.yaml"
sed -i "s/^version:.*\$/version: ${VERSION}/" "${chartPath}"
sed -i "s/^appVersion:.*\$/appVersion: ${VERSION}/" "${chartPath}"
sed -i "s/${CODEBASE_NAME}:.*\$/${CODEBASE_NAME}:${VERSION}/" "${chartPath}"
# Update version in README.md
echo "[TEKTON][DEBUG] Generate Readme.md"
Expand Down

0 comments on commit ac2db0e

Please sign in to comment.