#!/usr/bin/python3 import argparse import os from os import environ from subprocess import check_call # Store the current directory owd = os.getcwd() # Setup the supported command-line arguments parser = argparse.ArgumentParser(description='Push project Docker images') # Parse the command-line arguments args = parser.parse_args() # Change working directory os.chdir(os.path.join(os.path.dirname( __file__ ), '..' )) print('Pushing DataQ nginx image') check_call(["docker", "push", "rustyhorde/twists:dev"]) # Change back to the original directory os.chdir(owd)