mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +08:00
feat: set openim lint
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
This commit is contained in:
parent
dc9be13888
commit
52f9fc2099
@ -609,6 +609,10 @@ EOF
|
|||||||
# https://github.com/github-release/github-release
|
# https://github.com/github-release/github-release
|
||||||
function openim::release::github_release() {
|
function openim::release::github_release() {
|
||||||
# create a github release
|
# create a github release
|
||||||
|
if [ -z "${GITHUB_TOKEN}" ];then
|
||||||
|
openim::log::error "can not find env: GITHUB_TOKEN"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
openim::log::info "create a new github release with tag ${OPENIM_GIT_VERSION}"
|
openim::log::info "create a new github release with tag ${OPENIM_GIT_VERSION}"
|
||||||
${TOOLS_DIR}/github-release release \
|
${TOOLS_DIR}/github-release release \
|
||||||
--user ${OPENIM_GITHUB_ORG} \
|
--user ${OPENIM_GITHUB_ORG} \
|
||||||
@ -626,13 +630,18 @@ function openim::release::github_release() {
|
|||||||
--name ${ARTIFACT} \
|
--name ${ARTIFACT} \
|
||||||
--file ${RELEASE_TARS}/${ARTIFACT}
|
--file ${RELEASE_TARS}/${ARTIFACT}
|
||||||
|
|
||||||
openim::log::info "upload openim-src.tar.gz to release ${OPENIM_GIT_VERSION}"
|
for file in ${RELEASE_TARS}/*.tar.gz; do
|
||||||
${TOOLS_DIR}/github-release upload \
|
if [[ -f "$file" ]]; then
|
||||||
--user ${OPENIM_GITHUB_ORG} \
|
filename=$(basename "$file")
|
||||||
--repo ${OPENIM_GITHUB_REPO} \
|
openim::log::info "Update file ${filename} to release vertion ${OPENIM_GIT_VERSION}"
|
||||||
--tag ${OPENIM_GIT_VERSION} \
|
${TOOLS_DIR}/github-release upload \
|
||||||
--name "openim-src.tar.gz" \
|
--user ${OPENIM_GITHUB_ORG} \
|
||||||
--file ${RELEASE_TARS}/openim-src.tar.gz
|
--repo ${OPENIM_GITHUB_REPO} \
|
||||||
|
--tag ${OPENIM_GIT_VERSION} \
|
||||||
|
--name "${filename}" \
|
||||||
|
--file "${file}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function openim::release::generate_changelog() {
|
function openim::release::generate_changelog() {
|
||||||
|
|||||||
@ -306,12 +306,8 @@ openim::util::check_ports() {
|
|||||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||||
if command -v ss > /dev/null 2>&1; then
|
if command -v ss > /dev/null 2>&1; then
|
||||||
info=$(ss -ltnp | grep ":$port" || true)
|
info=$(ss -ltnp | grep ":$port" || true)
|
||||||
echo "!!!!!!!!!!! port=$port"
|
|
||||||
echo "!!!!!!!!!!! info=$info"
|
|
||||||
else
|
else
|
||||||
info=$(netstat -ltnp | grep ":$port" || true)
|
info=$(netstat -ltnp | grep ":$port" || true)
|
||||||
echo "!!!!!!!!!!! port=$port"
|
|
||||||
echo "!!!!!!!!!!! info=$info"
|
|
||||||
fi
|
fi
|
||||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
# For macOS, use lsof
|
# For macOS, use lsof
|
||||||
|
|||||||
@ -73,7 +73,8 @@ endif
|
|||||||
ifeq ($(origin VERSION), undefined)
|
ifeq ($(origin VERSION), undefined)
|
||||||
# VERSION := $(shell git describe --tags --always --match='v*')
|
# VERSION := $(shell git describe --tags --always --match='v*')
|
||||||
# git describe --tags --always --match="v*" --dirty
|
# git describe --tags --always --match="v*" --dirty
|
||||||
VERSION := $(shell git describe --tags --always --match="v*" --dirty | sed 's/-/./g') #v2.3.3.631.g00abdc9b.dirty
|
# VERSION := $(shell git describe --tags --always --match="v*" --dirty | sed 's/-/./g') #v2.3.3.631.g00abdc9b.dirty
|
||||||
|
VERSION := $(shell git describe --tags --always --match='v*')
|
||||||
# v2.3.3: git tag
|
# v2.3.3: git tag
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user