diff --git a/scripts/docker-env.sh b/scripts/docker-env.sh old mode 100644 new mode 100755 index 64e4864..245402a --- a/scripts/docker-env.sh +++ b/scripts/docker-env.sh @@ -1,11 +1,3 @@ #!/usr/bin/env sh -docker run \ - --pull always \ - -ti --rm --name "{{project_name}}" \ - --privileged -u root \ - -w "/srv/www" \ - -v "$(pwd)":/srv/www \ - -v ~/.ssh:/root/.ssh \ - -p {{port}}:9501 \ - harbor.luxcreo.cn/library/hyperf:8.1-swoole /bin/ash +sh -c "$(pwd)"/installer/resources/scripts/docker-env.sh \ No newline at end of file diff --git a/scripts/release.sh b/scripts/release.sh index 0de2140..91c83e7 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -1,5 +1,5 @@ #!/usr/bin/env sh docker run --rm -it \ - -v $(pwd):/app -e "GIT_AUTHOR_NAME=ch4o5" -e "EMAIL=dongyun.li@luxcreo.ai" \ - detouched/standard-version:latest $1 + -v "$(pwd)":/app -e "GIT_AUTHOR_NAME=$(git config user.name)" -e "EMAIL=$(git config user.email)" \ + detouched/standard-version:latest "$1"