-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 1.03 KB
/
build-chart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: build and release chart
on:
workflow_run:
workflows: ["build and push container"]
types:
- completed
env:
UPDATER_SECRET: ${{ secrets.UPDATER_SECRET }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3
- name: Run chart-releaser
id: chart
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Deploy latest version
run: |
VERSION=$(grep version charts/iguideme/Chart.yaml | cut -d " " -f2)
curl "https://k8s.datanose.nl/gitops-updater?name=iguideme&secret=${UPDATER_SECRET}&version=${VERSION}"