-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
49 lines (46 loc) · 1.68 KB
/
action.yml
File metadata and controls
49 lines (46 loc) · 1.68 KB
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
name: 'Package helm chart'
description: 'A composite action to package and publish the helm chart of ng services.'
author: 'Roberto Welzel Filho <rwelzel@epages.com>'
inputs:
build-timestamp:
description: 'The build timestamp in the "yyyyMMddHHmmss" format. Ex: 20220106100059'
required: true
project-chart-name:
description: 'The chart name of this project (without ng- prefix). Ex: product-management'
required: true
helm-repo-url:
description: 'The repo URL'
required: true
artifactory-username:
description: 'The username to access the artifactory helm repo.'
required: true
artifactory-password:
description: 'The password to access the artifactory helm repo.'
required: true
has-messaging:
description: 'Whether the service generates a "message-artifacts-helm.yaml" file during build (typically when the service uses messaging).'
required: true
default: true
outputs:
chart-version:
description: 'The version of the chart published'
value: ${{ steps.package-helm-chart.outputs.chart-version }}
runs:
using: 'composite'
steps:
- uses: actions/checkout@v4
- name: Download generated messaging helm values ⬇️
if: ${{ inputs.has-messaging == 'true' }}
uses: actions/download-artifact@v4
with:
name: message-artifact-values
path: build/message-artifacts-helm
- id: package-helm-chart
uses: docker://epages/ng-action-package-helm-chart:master
with:
args: >-
${{ inputs.build-timestamp }}
${{ inputs.project-chart-name }}
${{ inputs.helm-repo-url }}
${{ inputs.artifactory-username }}
${{ inputs.artifactory-password }}