doit: more checks on build

This commit is contained in:
boyska 2018-08-17 18:05:13 +02:00
parent a48c395975
commit a89399eec3

10
dodo.py
View file

@ -1,4 +1,5 @@
import subprocess import subprocess
import os
from doit.tools import LongRunning from doit.tools import LongRunning
@ -14,11 +15,10 @@ def task_build():
'''builda il container docker''' '''builda il container docker'''
return { return {
'uptodate': [up2date_anyimages], 'uptodate': [up2date_anyimages],
'file_dep': ['docker-compose.yml', 'docker/Dockerfile-tt-rss', 'file_dep': ['docker-compose.yml',
'docker/ttrss-openrc-apache', 'rss-bridge/Dockerfile',
'docker/ttrss-openrc-ttrssupdate', ] + [os.path.join('docker', fname)
'rss-bridge/Dockerfile' for fname in os.listdir('docker')],
],
'actions': [COMPOSE + ' build'], 'actions': [COMPOSE + ' build'],
'clean': [run_task_func(task__build_rm), 'clean': [run_task_func(task__build_rm),
run_task_func(task__build_rmi)], run_task_func(task__build_rmi)],