Skip to content

Help wanted with dokku remote #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HectorCastelli opened this issue Oct 16, 2020 · 1 comment
Closed

Help wanted with dokku remote #45

HectorCastelli opened this issue Oct 16, 2020 · 1 comment

Comments

@HectorCastelli
Copy link

When trying to push to a Dokku remote, I get errors.

For the following examples website is my application name and domain.com is the domain that points to my server.

Running locally

On a local machine, this is as simple as running:

  1. ssh-add dokku_key
  2. git remote add dokku [email protected]:website
  3. git push dokku

First attempt

With the following drone config

  - name: push commit
    image: appleboy/drone-git-push
    settings:
      ssh_key:
        from_secret: dokku_ssh_key
      remote: [email protected]:website
      remote_name: dokku

I get the error:

level=fatal msg="parse \"[email protected]:website\": first path segment in URL cannot contain colon"

I imagine this is because of the lack of a protocol, in this case ssh. After adding it and trying again, no luck...

Second attempt

  - name: push commit
    image: appleboy/drone-git-push
    settings:
      ssh_key:
        from_secret: dokku_ssh_key
      remote: ssh://[email protected]:website
      remote_name: dokku

I get the error:

level=fatal msg="parse \"ssh://[email protected]:website\": invalid port \":website\" after host"
@emadzz
Copy link

emadzz commented Nov 4, 2020

I have exactly the same issue, the following workaround fixed it for me. Although, I would wish this gets fixed in a new release.

Work-around is: image: appleboy/drone-git-push:0.2.0-linux-amd64
Originally posted by @decentral1se in #40 (comment)

@HectorCastelli HectorCastelli closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants