-
Notifications
You must be signed in to change notification settings - Fork 87
37 lines (32 loc) · 1.23 KB
/
push-operator-chart.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
name: Push Hazelcast-Platform-Operator Helm chart to the repo
on:
workflow_dispatch:
push:
branches:
- master
paths:
- "stable/hazelcast-platform-operator/**"
jobs:
publish:
runs-on: ubuntu-latest
env:
RELEASE_VERSION: ${{ github.event.inputs.RELEASE_VERSION }}
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
- name: Package operator chart and add it into index.yaml
run: |
helm package ./stable/hazelcast-platform-operator
helm package ./stable/hazelcast-platform-operator/charts/hazelcast-platform-operator-crds
aws s3 cp s3://hazelcast-charts/index.yaml .
helm repo index --url=https://hazelcast-charts.s3.amazonaws.com --merge ./index.yaml .
- name: Push operator chart 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