-
Notifications
You must be signed in to change notification settings - Fork 87
46 lines (39 loc) · 1.34 KB
/
push-charts.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
name: Push Helm charts to the repo
on:
workflow_dispatch:
push:
branches:
- master
paths:
- "stable/hazelcast/**"
- "stable/hazelcast-enterprise/**"
- "artifacthub-repo.yml"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- uses: azure/setup-helm@v4
with:
version: 'v3.2.1'
id: install
- name: Package charts and add them into index.yaml
run: |
helm package ./stable/hazelcast
helm package ./stable/hazelcast-enterprise
aws s3 cp s3://hazelcast-charts/index.yaml .
helm repo index --url=https://hazelcast-charts.s3.amazonaws.com --merge ./index.yaml .
- name: Push charts and index.yaml to S3 bucket
run: |
for CHART_TGZ in *.tgz; do aws s3 cp ${CHART_TGZ} s3://hazelcast-charts; done
aws s3 cp ./index.yaml s3://hazelcast-charts
- name: Push ArtifactHub metadata YAML to the S3 bucket
run: |
aws s3 cp ./artifacthub-repo.yml s3://hazelcast-charts