0

如何创建BuildConfig以在 Openshift Origin 上构建特定的 git 标签?

我没有在文档中找到

我已经尝试过commit并且tag喜欢以下内容:

  source:
    type: Git
    git:
      uri: 'https://github.com/luiscoms/gravity-world.git'
      ref: master
      commit: 1.0.0
      tag: 1.0.0

带标签:

  source:
    type: Git
    git:
      uri: 'https://github.com/luiscoms/gravity-world.git'
      ref: master
      tag: 1.0.0
4

1 回答 1

1

您应该在“ref”属性中指定标签(标签对存储库来说是全局的)

source:
    type: Git
    git:
      uri: 'https://github.com/luiscoms/gravity-world.git'
      ref: myTag_1.0.0

这是 openshift 文档参考:

" git 字段包含源代码的远程 Git 存储库的 URI。可选地,指定 ref 字段以检查特定的 Git 引用。有效的 ref 可以是 SHA1 标记或分支名称 "

https://docs.openshift.com/enterprise/3.1/dev_guide/builds.html#source-code

于 2016-11-22T14:19:32.377 回答