Skip to content

Commit

Permalink
add ldflag verion (#1052)
Browse files Browse the repository at this point in the history
Signed-off-by: yeya24 <yb532204897@gmail.com>
  • Loading branch information
yeya24 authored and k8s-ci-robot committed Aug 30, 2019
1 parent 5370ad1 commit c414e5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py/kubeflow/tf_operator/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ def build_operator_image(root_dir,
]:
util.run([
"go", "install", "-ldflags",
"-X github.com/kubeflow/tf-operator/pkg/version.GitSHA={}".format(
commit), t
'''-X github.com/kubeflow/tf-operator/pkg/version.GitSHA={}
-X github.com/kubeflow/tf-operator/pkg/version.Version={}'''.format(
commit, version_tag), t
])
continue
util.run(["go", "install", t])
Expand Down

0 comments on commit c414e5e

Please sign in to comment.