Skip to content

Commit 6e15c11

Browse files
committed
PR Fixes
1 parent 0a969b4 commit 6e15c11

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# App Deploy Script
22

3-
## Description
3+
A group of scripts facilitates mobile app deployment over CI with the following features:
4+
- Initialize deploy options
5+
- Extract environments from a trigger tag
6+
- Creating trigger tags for starting a specific deployment workflow on the CI
7+
- Creating final build tags by extracting environment and version data from the trigger tag and the resulting binary.
48

5-
Deploy script used for creating trigger tags with a tag message in the format `ci/internal-staging/2024-12-16T10-16`, where `internal-staging` is marking the workflow that should be started on the CI. The tag message set from this script can be used later for the changelog message on any CI (e.g., Bitrise). Once the build process is finished on CI/CD and the installation file is uploaded to the deployment service (e.g., TryOut Apps), an additional script is available for creating the final build tag in format `internal-staging/v1.0.0-45b46`, where `internal-staging` is marking the build type (i.e., internal for TryOut Apps, or store for App/Play Store; staging for target/flavor type), `v1.0.0-45` represents the build version (app version, build number, ...), and `b46` that represents the unique build count on CI/CD. Optionally, on some platforms, an additional value `cXX` (e.g., `c100`) can represent the code version.
9+
Trigger tags use the following format: `ci/internal-staging/2024-12-16T10-16`, where `internal-staging` should match the trigger condition for starting the appropriate workflow on the CI. The tag message set from this script can be used later for the changelog message on any CI (e.g., Bitrise).
10+
11+
Once the build process is finished on CI/CD and the installation file is uploaded to the deployment service, an additional script is available for creating the final build tag in format `internal-staging/v1.0.0-45b46`, where `internal-staging` is marking the build type (i.e., internal for TryOut Apps, or store for App/Play Store; staging for target/flavor type), `v1.0.0-45` represents the build version (app version, build number, ...), and `b46` that represents the unique build count on CI/CD. Optionally, an additional value, `cXX` (e.g., `c100`), can represent the code version on some platforms.
612

713
## Table of contents
814

install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ echo "Fetching script data..."
3434
if [ ! -d ".app_deploy_tmp" ]; then
3535
mkdir .app_deploy_tmp
3636
else
37-
rm -rf .app_deploy_tmp
37+
trap "rm -rf .app_deploy_tmp" EXIT
3838
fi
3939

4040
# Get install files
@@ -55,7 +55,7 @@ chmod +rx /usr/local/bin/app-deploy
5555
chmod +rx /usr/local/bin/.app-deploy-sources/
5656

5757
# Remove temp install folder
58-
rm -rf .app_deploy_tmp
58+
trap "rm -rf .app_deploy_tmp" EXIT
5959

6060
echo "Done!"
6161
exit 0

sources/__auto_update.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function __script_auto_update {
1616
if [ ! -d ".app_deploy_tmp" ]; then
1717
mkdir .app_deploy_tmp
1818
else
19-
rm -rf .app_deploy_tmp
19+
trap "rm -rf .app_deploy_tmp" EXIT
2020
fi
2121

2222
# Get new data
@@ -28,7 +28,7 @@ function __script_auto_update {
2828
cp -a .app_deploy_tmp/sources/. /usr/local/bin/.app-deploy-sources/
2929

3030
# Remove temp folder
31-
rm -rf .app_deploy_tmp
31+
trap "rm -rf .app_deploy_tmp" EXIT
3232

3333
echo "Updated to $VERSION!"
3434
exit 0

0 commit comments

Comments
 (0)