-
Notifications
You must be signed in to change notification settings - Fork 35
70 lines (57 loc) · 2.14 KB
/
tl500-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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
name: Release Helm Charts
on:
release:
types:
- created
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update release version for TL500-Base Helm Chart
uses: mikefarah/[email protected]
with:
cmd: >
yq e -i '.version = "${{ github.ref_name }}"' tooling/charts/tl500-base/Chart.yaml
- name: Update release version for TL500-Course-Content Helm Chart
uses: mikefarah/[email protected]
with:
cmd: >
yq e -i '.version = "${{ github.ref_name }}"' tooling/charts/tl500-course-content/Chart.yaml
- name: Add Git commit id to tl500-base chart description
uses: mikefarah/[email protected]
with:
cmd: >
yq e -i '.description = "${{ github.sha }}"' tooling/charts/tl500-base/Chart.yaml
- name: Add Git commit id to tl500-course-content chart description
uses: mikefarah/[email protected]
with:
cmd: >
yq e -i '.description = "${{ github.sha }}"' tooling/charts/tl500-course-content/Chart.yaml
- name: Install Helm dependencies and Package Charts TL500-base
run: |
helm dependency update tooling/charts/tl500-base
helm package tooling/charts/tl500-base -d /tmp/charts
- name: Install Helm dependencies and Package Charts TL500-course-content
run: |
helm dependency update tooling/charts/tl500-course-content
helm package tooling/charts/tl500-course-content -d /tmp/charts
- name: Checkout gh-pages
uses: actions/checkout@v2
with:
ref: 'gh-pages'
- name: Bring over the new Charts
run: |
mv /tmp/charts/tl500-*.tgz .
- name: Index the Helm Charts
run: |
helm repo index --url https://rht-labs.com/enablement-framework .
- name: Publish the updated Charts
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add .
git commit -m "Updated release charts ${{ github.ref_name }}"
git push