Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #69 from remyLemeunier/fix_version
Browse files Browse the repository at this point in the history
Push version when deploying with k8s
  • Loading branch information
obiesmans authored Oct 11, 2017
2 parents 1d57902 + a0d8354 commit b5de443
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion deployers/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ func (d *DeployerK8s) ListInstances(env string) ([]Instance, error) {
if err != nil {
return nil, err
}
// spew.Dump(content.Release.Config.Values)

return []Instance{
{
Expand Down Expand Up @@ -108,6 +107,11 @@ func (d *DeployerK8s) Deploy(env string, podVersion string, c chan State) error
}
}

overrides := []string{
fmt.Sprintf("image.tag=%s", podVersion),
}
d.Release.AddValues([]string{}, overrides)

log.Debugf("Deploying %s, version %s", d.ReleaseName, podVersion)
c <- State{Step: "deploying release", Progress: 0}
err = d.Release.Deploy()
Expand Down

0 comments on commit b5de443

Please sign in to comment.