From 0b8ceeca7540faab5f7750e2c95d6496ae904391 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 30 Jul 2014 14:51:48 +0100 Subject: Write release images into release subdirectory The script used to chdir into the release directory before running morph deploy. Unfortunately, this didn't work because deployments are run from the top of the definitons repository. So now the release directory is included in the path to be deployed. --- scripts/release-build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/release-build b/scripts/release-build index 36a38deb..361d32a0 100755 --- a/scripts/release-build +++ b/scripts/release-build @@ -98,7 +98,6 @@ class ReleaseApp(cliapp.Application): os.chdir('..') if not os.path.exists('release'): os.mkdir('release') - os.chdir('release') self.deploy_images(cluster, cluster_path) def load_morphology(self, name, kind=None): @@ -140,7 +139,7 @@ class ReleaseApp(cliapp.Application): 'In %s: system %s.location should be just the base name, ' 'e.g. "%s.img"' % (cluster_path, name, name)) - filename = '%s-%s' % (version_label, basename) + filename = os.path.join('release', '%s-%s' % (version_label, basename)) if os.path.exists(filename): self.output.write('Reusing existing deployment of %s\n' % filename) else: -- cgit v1.2.1