-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathaction.yml
129 lines (107 loc) · 3.55 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Create Cloud Deploy Release
author: Google LLC
description: |-
Use this action to create a release in Cloud Deploy.
inputs:
name:
description: |-
The name of the release.
required: true
delivery_pipeline:
description: |-
The delivery pipeline to use for the release.
required: true
region:
description: |-
Region in which the delivery pipeline can be found.
required: false
source:
description: |-
The location of the files to be included in the release.
required: false
build_artifacts:
description: |-
Path to a Skaffold output file containing the details of the image(s) to be released.
required: false
images:
description: |-
The images to be released.
required: false
disable_initial_rollout:
description: |-
Prevent the release being deployed to the first target in the delivery pipeline.
default: false
required: false
gcs_source_staging_dir:
description: |-
A directory in Google Cloud Storage to copy the source used for staging the build.
required: false
skaffold_file:
description: |-
Path of the skaffold file absolute or relative to the source directory.
required: false
annotations:
description: |-
Add additional annotations to the release.
required: false
labels:
description: |-
Add additional labels to the release.
required: false
description:
description: |-
Include a description of the release.
required: false
deploy_parameters:
description: |-
Additional parameters to supply at release creation time.
required: false
project_id:
description: |-
The Google Cloud Project ID. If unset, this is inherited from the environment.
required: false
flags:
description: |-
Space separated list of other Cloud Deploy flags, examples can be found:
https://cloud.google.com/sdk/gcloud/reference/deploy/releases/create#FLAGS
Example: '--from-k8s-manifest=manifest.yaml --skaffold-version=skaffold_preview'
required: false
gcloud_version:
description: |-
Version of the Cloud SDK to install. If unspecified or set to "latest",
the latest available gcloud SDK version for the target platform will be
installed. Example: "290.0.1".
required: false
gcloud_component:
description: |-
Version of the Cloud SDK components to install and use. If unspecified, the latest
or released version will be used. This is the equivalent of running
'gcloud alpha run' or 'gcloud beta run'. Valid values are `alpha` or `beta`.
required: false
outputs:
name:
description:
The full name of the release in Cloud Deploy, including project and
pipeline names, as well as the chosen name of the release itself.
link:
description:
A link to the Cloud Deploy release in the Google Cloud Web Console.
branding:
icon: 'chevrons-right'
color: 'blue'
runs:
using: 'node20'
main: 'dist/main/index.js'