Skip to content

Commit

Permalink
Merge pull request #118 from Leukocyte-Lab/fix_ci_appversion_update_i…
Browse files Browse the repository at this point in the history
…ssue

fix(ci): app version update
  • Loading branch information
knowlet authored Jan 30, 2024
2 parents c0217d3 + 89d209a commit af995a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Chart.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.0.0
version: $app_version

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/update-value.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ jobs:
export poster="${{ fromJson(github.event.inputs.version).poster }}"
export cronjob="${{ fromJson(github.event.inputs.version).cronjob }}"
export date=$(date +%y%m%d)
version="$(cat charts/agh2/Chart.yaml | grep -e '^version:' | awk '{print $2}')"
sed -i "s/$version/$(semver bump patch $version)/g" .github/workflows/Chart.yaml.template
export app_version="$(cat charts/agh2/Chart.yaml | grep -e '^version:' | awk '{print $2}' | xargs semver bump patch)"
envsubst < .github/workflows/values.template > "charts/agh2/values.yaml"
envsubst < .github/workflows/Chart.yaml.template > "charts/agh2/Chart.yaml"
cat charts/agh2/values.yaml
Expand Down

0 comments on commit af995a8

Please sign in to comment.