-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[grunt] Publish packages #6676
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
[grunt] Publish packages #6676
Conversation
|
Not a fan of using the super-generic task name "publish". perhaps "publish-packages"? |
| const productionPath = `kibana/${version.match(/\d\.\d/)[0]}`; | ||
| const stagingPath = `kibana/staging/${version.match(/\d\.\d\.\d/)[0]}-XXXXXXX/repos/${version.match(/\d\./)[0]}x`; | ||
| const rpmFolder = 'centos'; | ||
| const debFolder = 'debian'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just giving you a heads up: we might have to make some changes to these folder and path names with the unified release process, but we should move forward with this for now.
|
Updated instructions above, environment variables replaced with .files |
|
Is this something we can test with snapshot builds? |
|
Not currently, jenkins isn't setup to do any publishing yet - this would be step 1 in getting there. A config for snapshot could be added with the correct buckets. |
|
Gotcha. How about this: without an official build to make, is there any way I can test this now to verify that it works? |
|
I did my final testing by doing a temp staging push with the version in package.json set to something that wouldn't conflict. I setup all of this in a VM + concat the steps from https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#building-os-packages |
--------- **Commit 1:** [build] sha1 packages * Original sha: ac2ae33 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-03-09T21:03:09Z **Commit 2:** [build] Build i386 * Original sha: b0dd670 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-03-09T21:40:16Z **Commit 3:** [build] Set group kibana * Original sha: 5b3e178 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-03-09T21:54:30Z **Commit 4:** [build] Add rpm, deb name and path * Original sha: 6041ff8 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-03-09T22:45:55Z **Commit 5:** [build] Add tasks for publishing rpm, deb packages * Original sha: cde84ec * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-03-10T23:35:56Z **Commit 6:** [build] Rename publish to publishPackages * Original sha: da942d2 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-03-29T14:32:18Z **Commit 7:** [build] Move signing config to a file * Original sha: 51e8633 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-04-22T20:02:53Z **Commit 8:** [build] Pass env variables to rpm-s3 * Original sha: 86269bc * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-04-22T20:12:29Z **Commit 9:** [build] Keep process env variables, re-add done * Original sha: f3cd91a * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-04-27T22:23:13Z
--------- **Commit 1:** [build] sha1 packages * Original sha: ac2ae33 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-03-09T21:03:09Z **Commit 2:** [build] Build i386 * Original sha: b0dd670 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-03-09T21:40:16Z **Commit 3:** [build] Set group kibana * Original sha: 5b3e178 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-03-09T21:54:30Z **Commit 4:** [build] Add rpm, deb name and path * Original sha: 6041ff8 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-03-09T22:45:55Z **Commit 5:** [build] Add tasks for publishing rpm, deb packages * Original sha: cde84ec * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-03-10T23:35:56Z **Commit 6:** [build] Rename publish to publishPackages * Original sha: da942d2 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-03-29T14:32:18Z **Commit 7:** [build] Move signing config to a file * Original sha: 51e8633 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-04-22T20:02:53Z **Commit 8:** [build] Pass env variables to rpm-s3 * Original sha: 86269bc * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-04-22T20:12:29Z **Commit 9:** [build] Keep process env variables, re-add done * Original sha: f3cd91a * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-04-27T22:23:13Z
This adds a grunt task to sign and then publish packages to s3.
I left this out of the
grunt releasetask to avoid adding more dependencies. This isn't very consistent with the current process because it expects the packages to already be built, open to suggestions.Rough steps:
Import/create a signing key
Both of these need to be setup and added to your PATH:
https://github.com/crohr/rpm-s3
https://github.com/krobertson/deb-s3
.aws-config.json - expects properties key and secret
.signing-config.json - expects gpg properties name and id
and then