Skip to content
Snippets Groups Projects
Commit 0265033e authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add option to skip pushing

parent 5fb0e4a6
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ import sys
import time
REGISTRY_URL = 'docker.km3net.de'
SKIP_PUSH = '-q' in sys.argv
def get_changed_dockerfiles():
......@@ -33,9 +34,12 @@ def main():
steps = [("Building",
"docker build --pull -t {0}/{1} -f {1} . ".format(
REGISTRY_URL, fname)),
("Pushing", "docker push {0}/{1}".format(REGISTRY_URL,
fname))]
REGISTRY_URL, fname))]
if not SKIP_PUSH:
steps.append(("Pushing", "docker push {0}/{1}".format(REGISTRY_URL,
fname)))
else:
print("Skiping push...")
print('-' * 79)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment