2016-06-01 9 views
0

TravisからAzure Web Appにソリューションをデプロイしようとしています。私はthisの投稿をフォローし、デプロイメントの資格情報を使ってAzureにローカルgitリポジトリのデプロイメントを作成しました。Travis CIからAzure Web Appにデプロイする

私は私の.travis.ymlでこれを持って、このエラー

error: unable to push to unqualified destination: master
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.

私の周り掘って、私は

git push origin master:refs/heads/master 

を呼び出す必要があることを発見したを与える

deploy: 
provider: azure_web_apps 
skip_cleanup: true 
verbose: true 

リポジトリを初期化するために、私は.travis.ymlにこれをどこに置くべきかわかりませんでした

私はgit push部分全体を自分で書くことができましたが、それはTravis Azure機能の目的を否定するようです。

答えて

0

ここに答えることは非常に遅く、私は解決策が.travis.ymlに以下を追加することであろうと想像:

before_deploy: "git push origin master:refs/heads/master" 
関連する問題