-
Notifications
You must be signed in to change notification settings - Fork 165
61 lines (54 loc) · 1.49 KB
/
everest-release.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
58
59
60
61
name: Everest Chart Release
on:
workflow_dispatch:
inputs:
version:
description: "Everest version"
required: true
jobs:
release:
env:
VERSION: ${{ github.event.inputs.version }}
# Is set if the VERSION corresponds to an RC.
IS_RC: 0
runs-on: ubuntu-latest
steps:
- name: Set environment variables
run: |
if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "IS_RC=1" >> $GITHUB_ENV
fi
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
charts/everest
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Prepare RC
if: ${{ env.IS_RC == '1' }}
run: |
cd charts/everest
make release-dev
- name: Prepare release
if: ${{ env.IS_RC == '0' }}
run: |
cd charts/everest
make release
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0
- name: Release chart
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Release sub-chart
uses: helm/[email protected]
with:
charts_dir: charts/everest/charts
skip_existing: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"