-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.66 KB
/
release.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
44
45
46
47
48
49
50
51
52
53
54
55
name: Release Charts
on:
push:
branches:
- main
- unstable
jobs:
packages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Bright Security"
- name: Change name to unstable
if: ${{ github.ref == 'refs/heads/unstable' }}
run: |
sed -i 's/brokencrystals/brokencrystals-unstable/g' ./charts/brokencrystals/Chart.yaml
sed -i 's/brkn/brkn-unstbl/g' ./charts/brokencrystals/Chart.yaml
- name: Change values to development
if: ${{ github.ref == 'refs/heads/unstable' }}
run: |
sed -i 's/^ main:.*/ main: unstable/' ./charts/brokencrystals/values.yaml
sed -i 's/^ client:.*/ client: unstable/' ./charts/brokencrystals/values.yaml
- name: Move charts to charts-unstable folder
if: ${{ github.ref == 'refs/heads/unstable' }}
run: |
mkdir charts-unstable
mv charts/brokencrystals/ charts-unstable/
- name: Release packages main
if: ${{ github.ref == 'refs/heads/main' }}
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: true
- name: Release packages unstable
if: ${{ github.ref == 'refs/heads/unstable' }}
uses: helm/[email protected]
with:
charts_dir: charts-unstable
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: true