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 --follow-tags uses the host machines id_rsa.pub key #31

Open
PMByrne opened this issue May 19, 2016 · 0 comments
Open

git push --follow-tags uses the host machines id_rsa.pub key #31

PMByrne opened this issue May 19, 2016 · 0 comments

Comments

@PMByrne
Copy link

PMByrne commented May 19, 2016

Hello,
We have a build that uses the git provider.
It successfully clones our node repo, runs install, runs tests, then starts our custom script.

Our custom script run an npm prune --production, then an npm pack, we then push the new tarball into aws S3. Finally we run npm version patch with a commit message.

Everything up to this point works fine up to this point. The problem comes when we try to push the tags and the modified package.json file back into github.

+ git push --follow-tags origin master
Permission denied (publickey).
fatal: Could not read from remote repository.

How can we successfully complete this process buy pushing to github?

Our build script in case it helps:

appName=`node -e "console.log(require('./package.json').name);"`

npm version patch -m "%s (production deployment)"
npm prune --production
npm pack

# push to s3
version=`node -e "console.log(require('./package.json').version);"`
mv ./${appName}-*.tgz ./${appName}.tgz || exit 1
aws s3 cp --sse AES256 ./${appName}.tgz s3://${bucket}/deployables/${appName}-aws/${appName}-${version}.tgz|| exit 1

# bump the version again for development
npm version patch -m "%s (development)"

git push --follow-tags origin 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