forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.31 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
name: Package & Push Flyte Helm Charts
on:
pull_request:
push:
branches:
- master
- rc/*
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
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
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
run:
helm push ${{ matrix.chart }}-*.tgz oci://ghcr.io/flyteorg/helm-charts