Skip to content

Commit

Permalink
ci: add ci on pull request (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
braghettos authored Apr 5, 2024
1 parent a4aa87c commit 316f2ac
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: test-release

on:
pull_request:
branches:
- main

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/krateo-frontend.git

- name: Print latest App Version
run: echo ${{ steps.app_version.outputs.tag }}

- name: Checkout
uses: actions/checkout@v3

- name: Replace Version in Chart.yaml
run: sed -i 's/CHART_VERSION/${{ steps.app_version.outputs.tag }}/g' ./chart/Chart.yaml

- name: Replace App Version in Chart.yaml
run: sed -i 's/APP_VERSION/${{ steps.app_version.outputs.tag }}/g' ./chart/Chart.yaml

- name: Set up Helm
uses: azure/setup-helm@v4.1.0

- name: Helm lint
run: helm lint ./chart

0 comments on commit 316f2ac

Please sign in to comment.