-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (34 loc) · 1.39 KB
/
kubernetes-tentacle-publish-chart.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
name: Publish Chart
on:
pull_request:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: 'v3.13.2'
- name: Parse Chart config
uses: pietrobolcato/[email protected]
id: read_chart_yaml
with:
config: ${{ github.workspace }}/charts/kubernetes-tentacle/Chart.yaml
- name: Get branch names
id: branch_names
uses: OctopusDeploy/util-actions/[email protected]
- id: version
run: |
echo "CHART_VERSION=${{ steps.read_chart_yaml.outputs.version }}-${{ steps.branch_names.outputs.branch_name }}-$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
#- name: Login to Artifactory
# run: helm registry login packages.octopushq.com -u '${{ }}' -p '${{}}'
- name: Package Chart
run: helm package './charts/kubernetes-tentacle' --version '${{ env.CHART_VERSION }}'
- uses: actions/upload-artifact@v3
name: Upload packaged chart
with:
name: 'kubernetes-tentacle-$CHART_VERSION.tgz'
path: '${{ github.workspace }}/kubernetes-tentacle-$CHART_VERSION.tgz'
#- name: Push Chart to Artifactory
# run: helm push 'kubernetes-tentacle' oci://packages.octopushq.com