-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (38 loc) · 1.25 KB
/
upload.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: Upload Charts
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'charts/**'
jobs:
call-changed-charts-workflow:
uses: ./.github/workflows/lib-list-changed-charts.yaml
secrets: inherit
push:
runs-on: ubuntu-latest
needs: call-changed-charts-workflow
if: needs.call-changed-charts-workflow.outputs.charts != '[]'
strategy:
matrix:
include: ${{ fromJson(needs.call-changed-charts-workflow.outputs.charts) }}
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Run chart (${{ matrix.chart }}) publishing"
run: |
cd ${{ matrix.chart }}
touch .env
echo "HELM_CHARTS_REGISTRY_USERNAME=${{ secrets.HELM_CHARTS_REGISTRY_USERNAME }}" >> .env
echo "HELM_CHARTS_REGISTRY_PASSWORD=${{ secrets.HELM_CHARTS_REGISTRY_PASSWORD }}" >> .env
docker run \
-v "$PWD:/app/chart:rw" \
--env-file .env --entrypoint bash quay.io/jetbrains/helm-packager:latest \
-c "helm dependency update"
docker run \
-v "$PWD:/app/chart:rw" \
--env-file .env quay.io/jetbrains/helm-packager:latest \
release