Mercurial > code > home > repos > homeauto
comparison service/arduinoNode/tasks.py @ 1523:0da337780f22
dep updates; graph url renames; and other build updates
Ignore-this: 4603ef3d8db650a13e543dad8580ade8
darcs-hash:0840491cd6a4e4966f47a2abca0ed30ec434022a
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 05 Feb 2020 00:23:06 -0800 |
parents | c3c2418d138c |
children |
comparison
equal
deleted
inserted
replaced
1522:040e12a696a9 | 1523:0da337780f22 |
---|---|
5 TAG = f'bang6:5000/{JOB.lower()}:latest' | 5 TAG = f'bang6:5000/{JOB.lower()}:latest' |
6 ANSIBLE_TAG = JOB | 6 ANSIBLE_TAG = JOB |
7 | 7 |
8 @task | 8 @task |
9 def build_image(ctx): | 9 def build_image(ctx): |
10 ctx.run(f'docker build -t {TAG} .') | 10 ctx.run(f'docker build --network=host -t {TAG} .') |
11 | 11 |
12 @task(pre=[build_image]) | 12 @task(pre=[build_image]) |
13 def push_image(ctx): | 13 def push_image(ctx): |
14 ctx.run(f'docker push {TAG}') | 14 ctx.run(f'docker push {TAG}') |
15 | 15 |