-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (47 loc) · 1.46 KB
/
workflow.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Chart Release
on:
push:
branches:
- main
jobs:
chart-release:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.20.0'
- name: install chart release
run: |
git clone https://github.com/helm/chart-releaser.git
cd chart-releaser/
go build -o cr-bin ./cr/main.go
sudo mv cr-bin /usr/local/bin/cr
sudo chmod a+rx /usr/local/bin/cr
sudo chown root.root /usr/local/bin/cr
cd ..
rm -rf chart-releaser
cr version
- name: install helm
run: cd /tmp && curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install orb helm dependencies
run: |
make prepare-helm
- name: create deploy folder
run: |
mkdir .deploy
- name: create chart package
run: |
make branch=${{ github.ref_name }} package
- name: upload chart package
run: |
make branch=${{ github.ref_name }} ghtoken=${{ secrets.GITHUB_TOKEN }} upload
- name: indexing chart package
run: |
git config user.name "orb-ci"
git config user.email "[email protected]"
make branch=${{ github.ref_name }} ghtoken=${{ secrets.GITHUB_TOKEN }} index