File tree Expand file tree Collapse file tree 2 files changed +23
-12
lines changed Expand file tree Collapse file tree 2 files changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ function defaults() {
88 process . env . DEBUG = 'false' ;
99}
1010
11+ function usage ( ) {
12+ console . log ( `To release the koku-ui, use this script to first update koku-ui stage/prod branches.` ) ;
13+ console . log ( `This script will then fetch the latest SHA refs from those branches and update app-interface.` ) ;
14+ console . log ( `Branch PRs are created in the koku-ui repo and MRs will be created in your app-interface fork.\n` ) ;
15+ }
16+
1117async function setAppInterfaceConfig ( ) {
1218 const { appInterfaceEnv } = await inquirer . prompt ( [
1319 {
@@ -74,6 +80,8 @@ async function setConfig() {
7480
7581async function run ( ) {
7682 defaults ( ) ;
83+ usage ( ) ;
84+
7785 await setAppInterfaceConfig ( ) ;
7886 await setConfig ( ) ;
7987
Original file line number Diff line number Diff line change @@ -105,18 +105,21 @@ createDeploymentUpdates()
105105{
106106 mkdir -p $TMP_DIR
107107
108- if [ " $UPDATE_HCCM_STAGE " = ' true' ]; then
109- echo " ${KOKU_UI_HCCM} : Stage deployment" >> $DEPLOYMENTS_FILE
110- fi
111- if [ " $UPDATE_HCCM_PROD " = ' true' ]; then
112- echo " ${KOKU_UI_HCCM} : Prod deployment" >> $DEPLOYMENTS_FILE
113- fi
114- if [ " $UPDATE_ROS_STAGE " = ' true' ]; then
115- echo " ${KOKU_UI_ROS} : Stage deployment" >> $DEPLOYMENTS_FILE
116- fi
117- if [ " $UPDATE_ROS_PROD " = ' true' ]; then
118- echo " ${KOKU_UI_ROS} : Prod deployment" >> $DEPLOYMENTS_FILE
119- fi
108+ {
109+ if [ " $UPDATE_HCCM_STAGE " = " true" ]; then
110+ echo " ${KOKU_UI_HCCM} : Stage deployment"
111+ fi
112+ if [ " $UPDATE_HCCM_PROD " = " true" ]; then
113+ echo " ${KOKU_UI_HCCM} : Prod deployment"
114+ fi
115+ if [ " $UPDATE_ROS_STAGE " = " true" ]; then
116+ echo " ${KOKU_UI_ROS} : Stage deployment"
117+ fi
118+ if [ " $UPDATE_ROS_PROD " = " true" ]; then
119+ echo " ${KOKU_UI_ROS} : Prod deployment"
120+ fi
121+ } > " $DEPLOYMENTS_FILE "
122+
120123 DEPLOYMENTS=` cat $DEPLOYMENTS_FILE `
121124}
122125
You can’t perform that action at this time.
0 commit comments