some templates
This commit is contained in:
23
templates/output
Normal file
23
templates/output
Normal file
@@ -0,0 +1,23 @@
|
||||
-- shell
|
||||
mkdir q
|
||||
rm -r -d ./*
|
||||
|
||||
-- copy artifacts
|
||||
**/*
|
||||
|
||||
-- shell
|
||||
ls;
|
||||
mv ./${TARGET_FOLDER}/${DEPLOY_VERSION_VAR} ./
|
||||
BRANCH_NAME=$(cat ${DEPLOY_VERSION_VAR})
|
||||
|
||||
rm ${DEPLOY_VERSION_VAR}
|
||||
|
||||
echo "branch name is: $BRANCH_NAME"
|
||||
mkdir $BRANCH_NAME
|
||||
mv ./${TARGET_FOLDER}/* ./${BRANCH_NAME};
|
||||
rm -r -d ${TARGET_FOLDER};
|
||||
|
||||
ls;
|
||||
|
||||
-- copy
|
||||
// scp -r vars root@46.173.219.236:apps/my
|
||||
Reference in New Issue
Block a user