Skip to content

Conversation

@jbudz
Copy link
Contributor

@jbudz jbudz commented Mar 28, 2016

This adds a grunt task to sign and then publish packages to s3.

I left this out of the grunt release task 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

npm run build:ospackages
grunt publishPackages:staging or grunt publishPackages:production

@spalger
Copy link
Contributor

spalger commented Mar 28, 2016

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';
Copy link
Contributor

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.

@epixa epixa assigned jbudz and unassigned epixa Apr 22, 2016
@jbudz
Copy link
Contributor Author

jbudz commented Apr 22, 2016

Updated instructions above, environment variables replaced with .files

@jbudz jbudz assigned epixa and unassigned jbudz Apr 22, 2016
@epixa
Copy link
Contributor

epixa commented Apr 23, 2016

Is this something we can test with snapshot builds?

@jbudz
Copy link
Contributor Author

jbudz commented Apr 25, 2016

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.

@epixa
Copy link
Contributor

epixa commented Apr 25, 2016

Gotcha. How about this: without an official build to make, is there any way I can test this now to verify that it works?

@jbudz
Copy link
Contributor Author

jbudz commented Apr 25, 2016

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

@jbudz jbudz assigned jbudz and unassigned epixa Apr 25, 2016
@jbudz jbudz assigned epixa and unassigned jbudz Apr 28, 2016
@epixa epixa added the v4.6.0 label May 11, 2016
@jbudz jbudz mentioned this pull request May 13, 2016
@epixa epixa added v4.5.2 and removed v4.6.0 labels May 18, 2016
@epixa epixa merged commit 173a217 into elastic:master May 19, 2016
epixa added a commit that referenced this pull request May 19, 2016
---------

**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
elastic-jasper added a commit that referenced this pull request May 19, 2016
---------

**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
epixa added a commit that referenced this pull request May 19, 2016
epixa added a commit that referenced this pull request May 19, 2016
@jbudz jbudz mentioned this pull request Jun 10, 2016
@epixa epixa added v4.5.4 and removed v4.5.2 labels Jul 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants