Skip to content

Commit

Permalink
add version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
felixZdi committed Mar 22, 2024
1 parent 1f0a4b2 commit 8e4a5a9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: release

name: Docker Build
on:
schedule:
- cron: "0 22 * * 0" # every sunday at 10pm
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Release Charts
on:
push:
branches:
- main
- task/add-sec-scan
- "main"
- "task/add-sec-scan"

jobs:
release:
Expand All @@ -24,8 +24,12 @@ jobs:

- name: Install Helm
uses: azure/setup-helm@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
with:
skip_existing: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
23 changes: 23 additions & 0 deletions .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Bump helm app version

on:
push:
tags:
- "v?[0-9]+.[0-9]+.[0-9]+*"

permissions:
contents: write
pull-requests: write

jobs:
bump_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Bump appVersion
run: |
sed -i 's/appVersion:.*/appVersion: ${{ github.ref_name }}/g' charts/ca-injector/Chart.yaml
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: "Add app version ${{ github.ref_name }}"

0 comments on commit 8e4a5a9

Please sign in to comment.