hi all,
my working setup recently starts throwing erros on git clone. My drone setup is running in docker on drone:latest (updated on 26th of august). drone is connected to gitea (also running on latest docker image). I have a repo which is triggered to deploy when a tag is created. My last working deploy was 9 days ago on 23rd of august. Since then I didn’t changed anything on the drone.yaml but the only things changed are updates to drone and gitea. So the gitea webhook still lokks quite similar. Maybe my setup was wrong before and just worked by accident or there might be something broken.
My yaml lokks like this:
name: deployment
kind: pipeline
steps:
- name: copy_release
image: appleboy/drone-scp
settings:
host: some.server.net
username: some_user
password: some_password
port: 22
target: /target
source: /source
rm: true
- name: activate_release
image: appleboy/drone-ssh
settings:
host: some.server.net
username: some_user
password: some_password
port: 22
command_timeout: 10m
script:
- some_commands
trigger:
event:
- tag
Webhooks look like (containing refs to the tag):
{
"secret": "secret",
"ref": "refs/tags/1.1.21",
"before": "0000000000000000000000000000000000000000",
"after": "d2af71c7c3058ac2725848b91c27271cdcb7ea29",
"compare_url": "https://some.server.net:3000/",
"commits": [],
"head_commit": null,
"repository": {
"id": 2,
"owner": {
"id": 2,
"login": "private",
"full_name": "",
"email": "",
"avatar_url": "https://some.server.net:3000/avatars/2",
"language": "",
"is_admin": false,
"last_login": "1970-01-01T00:00:00Z",
"created": "2018-03-15T18:16:13Z",
"username": "private"
},
"name": "some.project",
"full_name": "private/some.project",
"description": "some description",
"empty": false,
"private": false,
"fork": false,
"parent": null,
"mirror": false,
"size": 7310,
"html_url": "https://some.server.net:3000/private/some.project",
"ssh_url": "git@isome.server.net:private/some.project.git",
"clone_url": "https://some.server.net:3000/private/some.project.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 0,
"watchers_count": 1,
"open_issues_count": 2,
"default_branch": "master",
"archived": false,
"created_at": "2018-03-14T15:56:04Z",
"updated_at": "2019-09-01T12:07:56Z",
"permissions": {
"admin": false,
"push": false,
"pull": false
},
"has_issues": true,
"has_wiki": false,
"has_pull_requests": false,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": false,
"allow_rebase": false,
"allow_rebase_explicit": false,
"allow_squash_merge": false,
"avatar_url": ""
},
"pusher": {
"id": 1,
"login": "login",
"full_name": "Full Name",
"email": "someone@mail.net",
"avatar_url": "https://secure.gravatar.com/avatar/111222?d=identicon",
"language": "en-US",
"is_admin": true,
"last_login": "2019-08-30T18:10:23Z",
"created": "2018-03-14T14:58:54Z",
"username": "user"
},
"sender": {
"id": 1,
"login": "login",
"full_name": "Full Name",
"email": "someone@mail.net",
"avatar_url": "https://secure.gravatar.com/avatar/111222?d=identicon",
"language": "en-US",
"is_admin": true,
"last_login": "2019-08-30T18:10:23Z",
"created": "2018-03-14T14:58:54Z",
"username": "user"
}
}
And git clone error:
Initialized empty Git repository in /drone/src/.git/
usage: git remote add [<options>] <name> <url>
-f, --fetch fetch the remote branches
--tags import all tags and associated objects when fetching
or do not fetch any tag at all (--no-tags)
-t, --track <branch> branch(es) to track
-m, --master <branch>
master branch
--mirror[=<push|fetch>]
set up remote as a mirror to push to or fetch from
+ git fetch origin +refs/heads/:
fatal: Invalid refspec '+refs/heads/:'
Not sure what goes wrong here and why it suddenly starts throwing.
Thanks for your help!