Skip to content

Commit

Permalink
Test: Helm Chart release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahsa committed Jan 29, 2024
1 parent 32c1fd3 commit 450497f
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
---
name: Lint, Test and Image Build CI
name: Lint, Test, Image Build and Chart release

on:
push:
branches: [ main ]
tags: [ '**' ]
pull_request:
branches: [ main ]
branches: [ Workflows ]

jobs:
lint:
Expand Down Expand Up @@ -56,3 +53,32 @@ jobs:
platforms: linux/amd64
push: true
tags: ghcr.io/${{ github.repository }}${{ matrix.dir }}:${{ github.sha }}

release:
name: release
runs-on: ubuntu-latest
needs:
- build
strategy:
matrix:
dir: ["deployments/server", "clients/proxy-client/deploy", "clients/harbor-client/deploy"]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v3

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
with:
charts_dir: ${{ matrix.dir }}
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 450497f

Please sign in to comment.