-
Notifications
You must be signed in to change notification settings - Fork 0
/
fabfile.py
36 lines (27 loc) · 866 Bytes
/
fabfile.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
from fabric.api import task, local
@task
def update_deps():
local("docker pull debian:stretch") # for redshirt
docker_name = "gcr.io/stable-dogfish-697/redshirt:latest"
@task
def build():
local("docker build -t {} .".format(docker_name))
@task
def push():
local("docker push {}".format(docker_name))
@task
def publish():
local("docker tag {} jrabbit/redshirt".format(docker_name))
local("docker push jrabbit/redshirt")
@task
def outdated():
local("docker run -it --rm {} pipenv run pip list -o --format=columns".format(docker_name))
@task
def apt_outdated():
local("docker run -it --rm {} bash -c 'apt-get update && apt list --upgradable'".format(docker_name))
@task
def login():
local("gcloud docker -a")
@task
def docsauto():
local("sphinx-autobuild -p 4444 -B -b html -d docs/build/doctrees docs/source build/html")