-
Notifications
You must be signed in to change notification settings - Fork 660
53 lines (49 loc) · 1.58 KB
/
helm-charts.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
name: Package & Push Flyte Helm Charts
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
on:
pull_request:
push:
branches:
- master
- rc/*
- 'release-v**'
workflow_dispatch:
jobs:
publish-development-helm-chart:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
chart: ["flyte-binary", "flyte-core", "flyteagent"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Helm
uses: azure/setup-helm@v3
- name: Login to GitHub Container Registry
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: "${{ secrets.FLYTE_BOT_USERNAME }}"
password: "${{ secrets.FLYTE_BOT_PAT }}"
- name: Build helm chart
working-directory: charts
run: |
helm dep update ${{ matrix.chart }}
helm package \
--app-version=${{ github.sha }} \
--version=0.0-${{ github.sha }} \
${{ matrix.chart }}
if ! ls ${{ matrix.chart }}-* 2>&1 >/dev/null;
then
echo "Chart package not found."
exit 1
fi
- name: Publish Helm chart to GHCR
working-directory: charts
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
run:
helm push ${{ matrix.chart }}-*.tgz oci://ghcr.io/${{ github.repository_owner }}/helm-charts