-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ab/domainupdate
- Loading branch information
Showing
20 changed files
with
1,265 additions
and
974 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Copyright (c) 2012-2020 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
# Contributors: | ||
# Red Hat, Inc. - initial API and implementation | ||
|
||
#Declare CN | ||
export CA_CN=eclipse-che-signer | ||
|
||
#Create Root Key | ||
openssl genrsa -out rootCA.key 4096 | ||
|
||
#Create and self sign the Root Certificate | ||
openssl req -x509 -new -nodes -key rootCA.key -subj /CN=${CA_CN} -sha256 -days 1024 -out rootCA.crt | ||
|
||
#Create the certificate key | ||
openssl genrsa -out domain.key 2048 | ||
|
||
#Create the signing (csr) | ||
openssl req -new -sha256 -key domain.key -subj "/C=US/ST=CK/O=RedHat/CN=${DOMAIN}" -out domain.csr | ||
|
||
#Verify Csr | ||
openssl req -in domain.csr -noout -text | ||
|
||
#Generate the certificate using the domain csr and key along with the CA Root key | ||
openssl x509 -req -in domain.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out domain.crt -days 500 -sha256 | ||
|
||
#Verify the certificate's content | ||
openssl x509 -in domain.crt -text -noout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,9 @@ | ||
# `chectl` release process | ||
|
||
#### Make release changes and push them to your personal fork | ||
1. Launch release script | ||
|
||
```bash | ||
CHE_VERSION="7.7.0" && \ | ||
BRANCH_NAME="7.7.x" && \ | ||
FORK="l0rd/chectl" && \ | ||
./make-release.sh ${CHE_VERSION} ${BRANCH_NAME} ${FORK} | ||
./make-release.sh ${RELEASE} ${BRANCH_NAME} | ||
``` | ||
|
||
#### Create a PR using `hub` | ||
|
||
[hub](https://hub.github.com/) is an extension to command-line git that helps you do everyday GitHub tasks without ever leaving the terminal. | ||
|
||
```bash | ||
GH_USER="l0rd" && \ | ||
RELEASE_ISSUE_LINK="https://github.com/eclipse/che/issues/15504" && \ | ||
hub pull-request --browse \ | ||
--base che-incubator:${BRANCH_NAME} \ | ||
--head ${GH_USER}:${BRANCH_NAME} \ | ||
-m "chore(release): release version ${CHE_VERSION}" \ | ||
-m "### What does this PR do?" \ | ||
-m "Release version ${CHE_VERSION}" \ | ||
-m "### What issues does this PR fix or reference?" \ | ||
-m "${RELEASE_ISSUE_LINK}" | ||
``` | ||
|
||
Wait for a review approval and then merge it. | ||
|
||
#### Release | ||
|
||
1. Delete the old chectl **release** branch from GitHub if it exist ([manually](https://github.com/che-incubator/chectl/branches)) | ||
2. Push to **release** branch: | ||
|
||
```bash | ||
GIT_REMOTE_UPSTREAM=git@github.com:che-incubator/chectl.git && \ | ||
git push ${GIT_REMOTE_UPSTREAM} ${BRANCH_NAME}:release | ||
``` | ||
|
||
3. Track [TravisCI Job](https://travis-ci.org/che-incubator/chectl/branches) | ||
2. Wait until [TravisCI Job](https://travis-ci.org/che-incubator/chectl/branches) from `release` branch is completed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.