-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
55 lines (42 loc) · 992 Bytes
/
action.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
inputs:
PREFIX_NAME:
required: true
IMAGE_TAG:
required: true
HELM_VALUES_ARG:
required: true
TIMEOUT:
required: false
default: "5m"
ACTION:
required: true
outputs:
INGRESS_HOSTS_JSON:
description: "JSON of Ingress hosts"
value: ${{ steps.main.outputs.INGRESS_HOSTS_JSON }}
runs:
using: "composite"
steps:
#- name: Checkout code
# uses: actions/checkout@v2
## For debug only
#- shell: bash
# run: |
# base64 <<EOF
# ${{ toJSON(inputs) }}
# EOF
#- shell: bash
# run: |
# env | sort
- shell: bash
id: main
# a checkout action of `coopTilleuls/action-helm` must be set with `path: 'action-helm'`
run: |
set -e
cd action-helm
bash script.sh
env:
PREFIX_NAME: ${{ inputs.PREFIX_NAME }}
ACTION: ${{ inputs.ACTION }}
TIMEOUT: ${{ inputs.TIMEOUT }}
HELM_VALUES_ARG: ${{ inputs.HELM_VALUES_ARG }}