Skip to content
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

error: remote origin already exists #107

Open
laur89 opened this issue Oct 15, 2024 · 0 comments
Open

error: remote origin already exists #107

laur89 opened this issue Oct 15, 2024 · 0 comments

Comments

@laur89
Copy link

laur89 commented Oct 15, 2024

latest: Pulling from appleboy/drone-git-push
Digest: sha256:7f95c270b2f0808aa5f6854504c65599ac9dad956c17d33ca4321f7f8d54fcba
Status: Image is up to date for appleboy/drone-git-push:latest
+ git config user.name myusername
+ git config user.email [email protected]
+ git remote add origin [email protected]:myusername/myrepo.git
error: remote origin already exists.
exit status 3

If I have a previous drone step that made a commit, how to use drone-git-push to push said changes?

.drone.yaml:

- name: git-push
  image: appleboy/drone-git-push
  settings:
    ssh_key:
      from_secret: github_ssh_key
    remote_name: origin
    branch: "${DRONE_BRANCH}"
    remote: "${DRONE_GIT_SSH_URL}"
    force: false
    followtags: true
  when:
    branch:
    - master
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

1 participant