Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(controller): use build tag if present
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fisher committed Oct 16, 2014
1 parent 8418141 commit bb352b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controller/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,8 @@ def new(self, user, config=None, build=None, summary=None, source_version='lates
if not build:
build = self.build
# always create a release off the latest image
source_image = '{}:{}'.format(build.image, source_version)
source_tag = 'git-{}'.format(build.sha) if build.sha else source_version
source_image = '{}:{}'.format(build.image, source_tag)
# construct fully-qualified target image
new_version = self.version + 1
tag = 'v{}'.format(new_version)
Expand Down

0 comments on commit bb352b4

Please sign in to comment.