-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.json
More file actions
25 lines (25 loc) · 900 Bytes
/
deploy.json
File metadata and controls
25 lines (25 loc) · 900 Bytes
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
{
"host": "hostname or ip",
"user": "user",
"port": 22,
"password": "@env:env_name",
"private_key_file": "/path/to/private/key",
"private_key_pass": "@env:env_name",
"pre-actions": [
"tarz -i deployment service namespace serviceaccount ingress example-component"
],
"actions": [
"mv /remote/path/app /remote/path/app_`date +%Y%m%d%H%M%S` ",
{
"type": "upload",
"from": "C:\\path\\to\\app.tar.gz",
"to": "/remote/path/app.tar.gz"
},
"mkdir -p /remote/path/app",
"tar -zxvf /remote/path/app.tar.gz -C /remote/path/app",
"rm -f /remote/path/app.tar.gz",
"kubectl apply -f /remote/path/app/deployment.yaml",
"kubectl rollout restart deployment.apps/example-deployment"
],
"post-actions": ["del /f C:\\path\\to\\app.tar.gz"]
}