Doesn't work on first deploy (when remote has no master)
cassioalmeidas opened this issue · comments
Show following error:
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.
error: failed to push some refs to 'dokku@cassioalmeidas.tk:sota'
ERROR: Job failed: exit code 1
I like how the problems resolve themselves :)
I had to do a first deploy through git push dokku master
Hi, i can confirm this issue.
This is log from Gitlab CI
$ git-push dokku@apps.entry.do:dq-screen-dev
# apps.entry.do:22 SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u6
# apps.entry.do:22 SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u6
# apps.entry.do:22 SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u6
Warning: Permanently added the ECDSA host key for IP address '35.198.101.248' to the list of known hosts.
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.
error: failed to push some refs to 'dokku@apps.entry.do:dq-screen-dev'
vs
git push dokku@apps.entry.do:dq-screen-dev
which works
I think very important is this part at the end of manual push:
To apps.entry.do:dq-screen-dev
* [new branch] master -> master
After this it is possible to use deploy from CI