Skip to content

feat: add impersonate flag to deployment (#32) #33

feat: add impersonate flag to deployment (#32)

feat: add impersonate flag to deployment (#32) #33

Workflow file for this run

name: release-tag
on:
push:
tags: ["[0-9]+.[0-9]+.[0-9]+"]
jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Extract latest App Version
uses: tdemin/find-latest-tag@v1
id: app_version
with:
repo: https://${{ secrets.HELM_CHARTS_BOT }}@github.com/krateoplatformops/backend.git
- name: Checkout
uses: actions/checkout@v3
- name: Extract Version
id: tagger
uses: battila7/get-version-action@v2
- name: Print Version
run: |
echo ${{steps.tagger.outputs.version}}
echo ${{steps.tagger.outputs.version-without-v}}
- name: Replace Version in Chart.yaml
run: sed -i 's/CHART_VERSION/${{ steps.tagger.outputs.version-without-v }}/g' ./chart/Chart.yaml
- name: Print latest App Version
run: echo ${{ steps.app_version.outputs.tag }}
- name: Replace App Version in Chart.yaml
run: sed -i 's/APP_VERSION/${{ steps.app_version.outputs.tag }}/g' ./chart/Chart.yaml
- name: Publish Helm chart
uses: stefanprodan/helm-gh-pages@master
with:
token: ${{ secrets.HELM_CHARTS_BOT }}
charts_dir: ./
charts_url: https://charts.krateo.io
owner: krateoplatformops
repository: helm-charts
branch: gh-pages