-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/v2/local trigger #9
base: feature/v2/base
Are you sure you want to change the base?
Conversation
fi | ||
|
||
# Get install files | ||
git clone --quiet https://github.com/infinum/app-deploy-script.git --branch feature/v2/local-trigger .app_deploy_tmp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--branch feature/v2/local-trigger
You will not forget to remove this, right? 😄
cat /Users/jaco/Infinum/Infinum_projects/AppDeployScript/app-deploy-script/app-deploy.sh > /usr/local/bin/app-deploy | ||
cp -a /Users/jaco/Infinum/Infinum_projects/AppDeployScript/app-deploy-script/sources/. /usr/local/bin/.app-deploy-sources/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should comment this out maybe? And maybe "sanitize" your local path 😄
if [ ${environment} -le $((${#environments[@]} - 1)) -a ${environment} -ge 0 ]; then | ||
environments_to_build+=("${environments[${environment}]}") | ||
else | ||
echo "Error: You chose wrong, young Jedi. This is the end of your path..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Young Jedi or young Padawan? 🤔
|
||
if [ -e "./.deploy-options.sh" ]; then | ||
echo "Options file already exists." | ||
echo "If you continue, stored options will be overriden!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "If you continue, stored options will be overriden!" | |
echo "If you continue, stored options will be overridden!" |
echo | ||
echo "[3] App Store" | ||
echo "[3] App/Play Store" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate the inclusivity 👍
echo | ||
echo "[3] App Store" | ||
echo "[3] App/Play Store" | ||
echo | ||
read -r -p "Enter number in square brackets: " target_selection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might help to be a bit more descriptive and explain how you can put multiple numbers delimited by space
In this PR, you can find some changes and news.
Changes
sources
folder__
on a "private" function name (redhat convention)deploy-options.sh
(options defined per project) by making it more mobile-related (from iOS-oriented) and by adding the flag that defines the version of the tag format.New features
init
command is added. Once the script is installed (existing install command), the developer should runapp-deploy init
in the project's root, where the.deploy-options.sh
file will be added. That's the only file the dev should edit.script_version
flag that defines whether the project uses the old v1 approach (script generating build number) or the new v2 approach (script creating trigger tag). If someone updates the script but leaves.deploy-options.sh
without this property, the script will fall back to v1—this ensures backward compatibility.Usage
Screen.Recording.2024-12-05.at.17.30.37.mov