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

Git push to heroku remote not working #14

Open
johnhunsley opened this issue Mar 3, 2018 · 4 comments
Open

Git push to heroku remote not working #14

johnhunsley opened this issue Mar 3, 2018 · 4 comments

Comments

@johnhunsley
Copy link

Hi,

Looking at the Fan-in-out example - https://github.com/CircleCI-Public/circleci-demo-workflows/tree/fan-in-fan-out/.circleci

I'm trying to do a similar heroku deploy with circleci v2.0. I'm looking at the command on line 93 in the deploy job of the config.yml I can't understand how the assets, restored from the previous jobs, are added to git? In my build I get failures telling me the build artifacts I am trying to push to the remote heroku git repo haven't been added and there's nothing to push.

According to this document - https://devcenter.heroku.com/articles/git you need to run

git init
git add
git commit

before pushing the build to heroku's repo from where it is deployed. I have added those commands before pushing but I then get errors such as

*** Please tell me who you are.

even though Ive added the user credentials by runing the setup-heroku.sh script.

am I missing something?

P.S. Sorry, I can't put this on the forum but I can't access it for some reason.

@johnhunsley
Copy link
Author

Here's the git commands I'm running -

heroku auth:token
git init
git add *.jar
heroku git:remote -a $HEROKU_APP
git commit -m "committing executable artifact..."
git push heroku master
sleep 5
heroku restart

And the error I get -

HEROKU_API_KEY is set
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Initialized empty Git repository in /home/ubuntu/johnhunsley/returns/target/.git/
set git remote heroku to https://git.heroku.com/my-heroku-app.git

*** Please tell me who you are.

Run

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'ubuntu@f44a3f494f98.(none)')
Exited with code 128

@zzak
Copy link
Contributor

zzak commented Mar 4, 2018

Hello @johnhunsley!

Thanks for your report.

Could you send us a build link?

@johnhunsley
Copy link
Author

@johnhunsley
Copy link
Author

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