-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (53 loc) · 1.57 KB
/
release.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
48
49
50
51
52
53
54
55
56
57
58
59
60
---
name: Release
"on":
push:
branches:
- 'main'
workflow_dispatch:
jobs:
gather:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
- name: Clone current repository
uses: actions/checkout@v4
- name: Gather all folders
id: matrix
run: |
charts="value=["
for chart in $(ls -1 | grep -v -e LICENSE -e README.md -e renovate.json5); do
tag="$(cat ${chart}/Chart.yaml | grep ^version | cut -d ' ' -f 2)"
charts="${charts}{\"chart\": \"${chart}\", \"tag\": \"${tag}\"}, "
done
charts="${charts::-2}]"
echo "${charts}" >> $GITHUB_OUTPUT
- name: Debug
run: |
echo "${{ steps.matrix.outputs.value }}"
release:
runs-on: ubuntu-latest
needs:
- gather
strategy:
matrix:
value: ${{ fromJSON(needs.gather.outputs.matrix) }}
steps:
- name: Debug
run: |
echo "${{ matrix.value['chart'] }}"
echo "${{ matrix.value['tag'] }}"
- name: Clone current repository
uses: actions/checkout@v4
- name: Chart | Push
uses: appany/[email protected]
with:
name: "${{ matrix.value['chart'] }}"
path: "./${{ matrix.value['chart'] }}"
tag: "${{ matrix.value['tag'] }}"
repository: tibeer
registry: ghcr.io
registry_username: ${{ github.repository_owner }}
registry_password: ${{ github.token }}
#update_dependencies: 'true'