forked from Nextdoor/helm-set-image-tag-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
105 lines (92 loc) · 3.03 KB
/
action.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Set Helm Template Image Tag Value
author: Matt Wise
description: |-
Using `yq`, updates a Helm chart's "image tag" value.
inputs:
values_files:
description: >-
The path to the `values.yaml` file that you want to modify.
required: true
default: chart/values.yaml
tag_keys:
description: >-
The dot-notation path to the YAML key (or keys, if listed as a CSV) that
should be updated.
required: true
default: .image.tag
tag_value:
description: The destination tag (the new tag) to create and publish
required: true
bump_level:
description: >-
`patch`, `minor`, `major`, or `null` to skip bumping the Chart version.
required: true
default: patch
helm_docs:
description: >-
Enables or disables (`true` or `false`) automated updating of the Helm
documentation.
required: true
default: 'true'
commit_branch:
description: >-
If supplied, the job will check out this branch before making any git
commits. This is useful when you are running this action on a Tag
trigger rather than a branch or pull-request trigger.
required: false
commit_tag:
description: >-
If supplied, the job will create a new branch pointing to the commit that
has just been created as part of the release process. If you do not set
$commit_branch, you must set $commit_tag or the final `git push` will
fail.
required: false
commit_message:
description: Commit message
required: false
default: Automated commit on behalf-of ${{ github.actor }}
commit_and_push:
description: Whether to commit and push to remote.
required: true
default: true
force:
description: >-
If true, then the git tag event (and the git push) will be forced. This
will overwrite existing tags.
default: true
required: true
commit_options:
description: Commit options (eg. --no-verify)
required: false
default: ''
verbose:
description: >-
If set to 'true', then the 'set -x' flag will be turned on to help debug
the action.
required: false
default: 'false'
dry:
description: >-
If set to 'true', then at the end of the work a Git diff will be printed
out, but no git push will happen.
required: false
default: 'false'
runs:
using: "composite"
steps:
- run: $GITHUB_ACTION_PATH/entrypoint.sh
env:
INPUT_VALUES_FILES: ${{inputs.values_files}}
INPUT_TAG_KEYS: ${{inputs.tag_keys}}
INPUT_TAG_VALUE: ${{inputs.tag_value}}
INPUT_BUMP_LEVEL: ${{inputs.bump_level}}
INPUT_HELM_DOCS: ${{inputs.helm_docs}}
INPUT_COMMIT_BRANCH: ${{inputs.commit_branch}}
INPUT_COMMIT_TAG: ${{inputs.commit_tag}}
INPUT_COMMIT_MESSAGE: ${{inputs.commit_message}}
INPUT_COMMIT_AND_PUSH: ${{inputs.commit_and_push}}
INPUT_FORCE: ${{inputs.force}}
INPUT_COMMIT_OPTIONS: ${{inputs.commit_options}}
INPUT_VERBOSE: ${{inputs.verbose}}
INPUT_DRY: ${{inputs.dry}}
shell: bash