-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.py
43 lines (34 loc) · 909 Bytes
/
tasks.py
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
# This is a starting tasks file for invoke-kubesae
# https://github.com/caktus/invoke-kubesae#usage
#
import invoke
from colorama import init
from kubesae import aws
from kubesae import deploy
from kubesae import image
from kubesae import pod
init(autoreset=True)
@invoke.task
def staging(c):
c.config.env = "staging"
c.config.namespace = "chippy-staging"
@invoke.task
def production(c):
c.config.env = "production"
c.config.namespace = "chippy-production"
ns = invoke.Collection()
ns.add_collection(image)
ns.add_collection(aws)
ns.add_collection(deploy)
ns.add_collection(pod)
ns.add_task(staging)
ns.add_task(production)
ns.configure(
{
"app": "chippy",
"aws": {"region": "us-east-1",},
"cluster": "caktus-saguaro-cluster",
"repository": "472354598015.dkr.ecr.us-east-1.amazonaws.com/chippy",
"run": {"echo": True, "pty": True},
}
)