generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
39 lines (38 loc) · 1.35 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
name: 'kubernetes-canary-action'
description: 'An action to handle kubectl interaction for canary deploys and deploy lock/unlock'
author: 'Smartly.io'
inputs:
# Expects to be pre-configured with smartlyio/kubernetes-auth-token@v1
kubernetesContext:
description: 'Kubernetes context name. Usually the name of the cluster, but can be random.'
required: true
serviceName:
description: 'Name of the service'
required: true
deploymentName:
description: 'Name of the deployment within service to operate rollbacks on'
required: false
command:
description: 'Canary support command to run. One of [lock|unlock|isLocked]'
required: true
user:
description: 'User locking the deployment'
required: false
production:
description: >-
Pass 'true' to skip check for safe canary deployments. Applies
only to the isLocked command.
The default strictly checks that there is exactly one active
deployment version; production mode skips this to allow
deploying a new version even if previous rollout is stuck, or if
no version is deployed at all.
required: false
default: "false"
outputs:
CURRENT_IMAGE_SHA:
description: 'Current docker image tag running in the cluster'
LOCKED:
description: 'Is deployment currently locked [true/false]'
runs:
using: 'node16'
main: 'dist/index.js'