Skip to content

Commit bb352b4

Browse files
author
Matthew Fisher
committed
fix(controller): use build tag if present
1 parent 8418141 commit bb352b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

controller/api/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,8 @@ def new(self, user, config=None, build=None, summary=None, source_version='lates
618618
if not build:
619619
build = self.build
620620
# always create a release off the latest image
621-
source_image = '{}:{}'.format(build.image, source_version)
621+
source_tag = 'git-{}'.format(build.sha) if build.sha else source_version
622+
source_image = '{}:{}'.format(build.image, source_tag)
622623
# construct fully-qualified target image
623624
new_version = self.version + 1
624625
tag = 'v{}'.format(new_version)

0 commit comments

Comments
 (0)