1 Star 0 Fork 32

龙人 / WordPress_diancloud

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
release.sh 809 Bytes
Copy Edit Web IDE Raw Blame History
imShadow authored 2015-03-24 12:32 . ver 4.1.1
#/bin/bash
if [ -z $1 ]; then
echo "./release.sh <tag>";
exit;
fi
if [ $(git tag |grep $1 |wc -l) != 1 ]; then
echo " TAG [$1] NOT FOUND";
exit;
fi
RELEASE_NAME="wordpress-$1.zip"
DOCKER_FILE_PATH=/Volumes/Work/MacBook/WORK-2015/dockerfile/dockerfile/Docker/applications/wordpress/$1
RELEASE_PATH=/Volumes/Work/MacBook/WORK-2015/wordpress/release
mkdir -p $RELEASE_PATH
echo "$RELEASE_PATH/$RELEASE_NAME"
mkdir -p $DOCKER_FILE_PATH
if [ -f "$RELEASE_PATH/$RELEASE_NAME" ]; then
rm -f "$RELEASE_PATH/$RELEASE_NAME"
fi
git archive --format=zip $1 > "$RELEASE_PATH/$RELEASE_NAME"
if [ -f "$DOCKER_FILE_PATH/$RELEASE_NAME" ]; then
mv "$DOCKER_FILE_PATH/$RELEASE_NAME" "$DOCKER_FILE_PATH/$RELEASE_NAME.$(date +%Y%m%d%H%M%S)"
fi
cp "$RELEASE_PATH/$RELEASE_NAME" "$DOCKER_FILE_PATH/$RELEASE_NAME"

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/long_ren/WordPress_diancloud.git
git@gitee.com:long_ren/WordPress_diancloud.git
long_ren
WordPress_diancloud
WordPress_diancloud
master

Search

102255 3a0e046c 1850385 102255 7aaa926c 1850385