Add hotfix branch

This commit is contained in:
Ali 2021-04-06 02:53:32 +04:00
parent f47245585f
commit 0dca1b727d
4 changed files with 10 additions and 2 deletions

View File

@ -48,9 +48,11 @@ jobs:
cd $SOURCE_DIR
BUILD_NUMBER_OFFSET="$(cat build_number_offset)"
export APP_VERSION=$(cat versions.json | python3 -c 'import json,sys;obj=json.load(sys.stdin);print(obj["app"]);')
export COMMIT_COUNT=$(git rev-list --count HEAD)
export COMMIT_COUNT="$(($COMMIT_COUNT+2000))"
export COMMIT_COUNT="$(($COMMIT_COUNT+$BUILD_NUMBER_OFFSET))"
export BUILD_NUMBER="$COMMIT_COUNT"
echo "BUILD_NUMBER=$(echo $BUILD_NUMBER)" >> $GITHUB_ENV
echo "APP_VERSION=$(echo $APP_VERSION)" >> $GITHUB_ENV

View File

@ -70,6 +70,7 @@ beta_testflight:
stage: build
only:
- beta
- hotfix
except:
- tags
script:
@ -87,6 +88,7 @@ deploy_beta_testflight:
stage: deploy
only:
- beta
- hotfix
except:
- tags
script:
@ -100,6 +102,7 @@ verifysanity_beta_testflight:
stage: verifysanity
only:
- beta
- hotfix
except:
- tags
script:
@ -118,6 +121,7 @@ verify_beta_testflight:
stage: verify
only:
- beta
- hotfix
except:
- tags
script:

1
build_number_offset Normal file
View File

@ -0,0 +1 @@
100

View File

@ -79,7 +79,8 @@ COMMIT_ID="$(git rev-parse HEAD)"
COMMIT_AUTHOR=$(git log -1 --pretty=format:'%an')
if [ -z "$2" ]; then
COMMIT_COUNT=$(git rev-list --count HEAD)
COMMIT_COUNT="$(($COMMIT_COUNT+2000))"
BUILD_NUMBER_OFFSET="$(cat build_number_offset)"
COMMIT_COUNT="$(($COMMIT_COUNT+$BUILD_NUMBER_OFFSET))"
BUILD_NUMBER="$COMMIT_COUNT"
else
BUILD_NUMBER="$2"