Skip to content

Commit

Permalink
Update release script to use gh cli
Browse files Browse the repository at this point in the history
Signed-off-by: PuneetPunamiya <ppunamiy@redhat.com>
  • Loading branch information
PuneetPunamiya committed Nov 9, 2023
1 parent 992c005 commit 0c3c42e
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,14 @@ replaceImageName() {
sed -i "s@image: quay.io/tekton-hub/ui@image: ${REGISTRY_BASE_URL}/ui:$RELEASE_VERSION@g" ${RELEASE_DIR}/ui-openshift.yaml
}

createGitTag() {
echo; echo 'Creating tag for new release:'
createNewPreRelease() {
echo; echo 'Creating New Tekton Hub Pre-Release :'

hub release create --draft --prerelease -a db.yaml \
-a db-migration.yaml \
-a api-kubernetes.yaml \
-a api-openshift.yaml \
-a ui-kubernetes.yaml \
-a ui-openshift.yaml \
-m "${RELEASE_VERSION}" "${RELEASE_VERSION}"
gh repo set-default git@github.com:tektoncd/hub.git

gh release create --draft --prerelease -t ${RELEASE_VERSION} ${RELEASE_VERSION}

gh release upload ${RELEASE_VERSION} db.yaml db-migration.yaml api-kubernetes.yaml api-openshift.yaml ui-kubernetes.yaml ui-openshift.yaml
}

createNewBranchAndPush() {
Expand Down Expand Up @@ -206,7 +204,7 @@ main() {
echo "********************************************"
info Create Git Tag
echo "********************************************"
createGitTag
createNewPreRelease

echo "********************************************"
info Create New Branch And Push
Expand Down

0 comments on commit 0c3c42e

Please sign in to comment.