-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (46 loc) · 1.38 KB
/
build.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
name: generate-helm-repo
on:
schedule:
- cron: '30 13 * * 3'
# push:
# branches:
# - main
# - master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
generate-helm-repo:
runs-on: ubuntu-latest
container:
image: ghcr.io/arvatoaws-labs/helm-pipeline/release:latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
- name: Clone
run: |
mkdir -p stable
cd stable
for CHART in wordpress wordpress-bedrock argosinterface alertmanager-sns-forwarder lamp
do
git clone https://github.com/arvatoaws-labs/$CHART-helm-chart.git $CHART
done
- name: Package
run: |
for CHART in wordpress wordpress-bedrock argosinterface alertmanager-sns-forwarder lamp
do
helm3 package -u ./stable/$CHART
done
- name: Index
run: |
helm3 repo index . --url https://arvatoaws-labs.github.io/helm-repo/ --merge index.yaml
- name: Upload
run: |
git config --global --add safe.directory /__w/helm-repo/helm-repo
git config --global user.email "[email protected]"
git config --global user.name "Patrick Robinson"
git add *.tgz
git add index.yaml
git commit -m "Updated Helm Charts from GitHub Actions"
git push