Skip to content

Commit

Permalink
Add ssh keys so new tags can be pushed to Github from Jenkins (elasti…
Browse files Browse the repository at this point in the history
…c#3740)

* Add ssh keys so new tags can be pushed to Github

* Need a vault token before we can pull secrets
  • Loading branch information
JoshMock authored and anishagg17 committed Jul 20, 2020
1 parent 1bf8302 commit e9b3b6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .ci/jobs/elastic+eui+npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
export VAULT_TOKEN=$(vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")
# add ssh keys to ensure tags can push to Github
/usr/local/bin/ssh-add-from-vault elastic
# write npm auth to .npmrc
NPM_TOKEN=$(vault read -field=token secret/jenkins-ci/npmjs/elasticmachine)
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
Expand Down

0 comments on commit e9b3b6d

Please sign in to comment.