Skip to content

Commit

Permalink
Merge pull request #1169 from dlabrecq/beta
Browse files Browse the repository at this point in the history
Update deployment strategy
  • Loading branch information
dlabrecq authored Aug 6, 2024
2 parents 2047c29 + 16546a3 commit 4d5049e
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions scripts/release-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ default()
TMP_DIR="/tmp/$SCRIPT.$$"

MAIN_BRANCH="main"
PROD_BETA_BRANCH="prod-beta"
PROD_STABLE_BRANCH="prod-stable"
STAGE_STABLE_BRANCH="stage-stable"
PROD_BRANCH="prod-stable"

UI_DIR="$TMP_DIR/hybrid-committed-spend-ui"
UI_REPO="[email protected]:RedHatInsights/hybrid-committed-spend-ui.git"
Expand All @@ -27,17 +25,11 @@ cat <<- EEOOFF
This script will merge the following branches and create a pull request (default) or push upstream
stage-stage is merged from stage-beta
prod-beta is merged from stage-stable
prod-stable is merged from prod-beta
sh [-x] $SCRIPT [-h|u] -<b|p|s>
OPTIONS:
h Display this message
b Prod beta
p Prod stable
s Stage stable
p Merge $MAIN_BRANCH to $PROD_BRANCH
u Push to upstream
EEOOFF
Expand Down Expand Up @@ -108,11 +100,7 @@ push()

while getopts hbpsu c; do
case $c in
b) BRANCH=$PROD_BETA_BRANCH
REMOTE_BRANCH=$STAGE_STABLE_BRANCH;;
p) BRANCH=$PROD_STABLE_BRANCH
REMOTE_BRANCH=$PROD_BETA_BRANCH;;
s) BRANCH=$STAGE_STABLE_BRANCH
p) BRANCH=$PROD_BRANCH
REMOTE_BRANCH=$MAIN_BRANCH;;
u) PUSH=true;;
h) usage; exit 0;;
Expand Down

0 comments on commit 4d5049e

Please sign in to comment.