Compare commits
3
Commits
1.1.1
..
ce7e2593f4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce7e2593f4 | ||
|
|
0d7266ce35 | ||
|
|
ea0bea3c94 |
@@ -16,8 +16,8 @@ if [ -f "${DEPLOY_DESTINATION_FILE}" ]; then
|
||||
fi
|
||||
|
||||
# Check if the correct usage is respected
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "Usage: $0 <service> <service name>"
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "Usage: $0 <service> <service name> [branch/tag]"
|
||||
echo
|
||||
echo "Current settings:"
|
||||
echo "- Source · ${DEPLOY_SOURCE}"
|
||||
@@ -26,4 +26,10 @@ if [ $# -ne 2 ]; then
|
||||
fi
|
||||
|
||||
echo "deploying ..."
|
||||
git clone "${DEPLOY_SOURCE}/${1}" "${DEPLOY_DESTINATION}/$2"
|
||||
git clone "${DEPLOY_SOURCE}/${1}" "${DEPLOY_DESTINATION}/${2}"
|
||||
|
||||
if [ $# -eq 3 ]; then
|
||||
pushd "${DEPLOY_DESTINATION}/${2}"
|
||||
git checkout "${3}"
|
||||
popd
|
||||
fi
|
||||
Reference in new issue
Block a user