APIGOV-27565 - refactor #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Kong Agents Helm | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
helm-archive: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: olegtarasov/[email protected] | |
id: tagName | |
with: | |
tagRegex: "v(.*)" | |
tagRegexGroup: 1 | |
- name: Update chart versions | |
run: | | |
sed helm/kong-agents/Chart.yaml -i -e "s/^appVersion.*/appVersion:\ \"v${GIT_TAG_NAME}\"/" | |
sed helm/kong-agents/Chart.yaml -i -e "s/^version.*/version:\ ${GIT_TAG_NAME}/" | |
- name: Archive chart | |
run: | | |
tar czf kong-agents.tgz -C helm/kong-agents . | |
- name: Upload chart to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: kong-agents.tgz | |
tag: ${{ github.ref_name }} |