2016-11-22 44 views
0

如何創建BuildConfig在Openshift Origin上構建特定的git標籤?如何在Openshift Origin上創建git標籤?

我沒有對documentation

發現我已經試過committag類似以下內容:

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 

回答

1

你應該在 「參考」 指定標籤屬性(標籤對存儲庫是全局的)

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

這是openshift文檔參考:

的GIT中字段包含URI的源代碼的遠程Git倉庫。或者,指定ref字段來檢出特定的Git引用。 有效的ref可以是SHA1標籤或分支名稱

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