feat: add more feature in scripts

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
pull/462/head
Xinwei Xiong(cubxxw-openim) 1 year ago
parent ada9acf218
commit 12695337e9

@ -0,0 +1,7 @@
# https://github.com/apps/weekly-digest/installations/new
publishDay: sun
canPublishIssues: true
canPublishPullRequests: true
canPublishContributors: true
canPublishStargazers: true
canPublishCommits: true

@ -1,4 +1,4 @@
name: OpenIMCI name: OpenIM CI
on: on:
# main branch # main branch
@ -64,7 +64,7 @@ jobs:
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build docker images for host arch and push images to registry - name: Build docker images for host arch and push images to registry

@ -27,8 +27,8 @@ readonly BUCKET="openim-1306374445"
readonly REGION="ap-beijing" readonly REGION="ap-beijing"
readonly COS_RELEASE_DIR="openim-release" readonly COS_RELEASE_DIR="openim-release"
# default cos command tool # default cos command tool coscli or coscmd
readonly COSTOOL="coscmd" readonly COSTOOL="coscli"
# This is where the final release artifacts are created locally # This is where the final release artifacts are created locally
readonly RELEASE_STAGE="${LOCAL_OUTPUT_ROOT}/release-stage" readonly RELEASE_STAGE="${LOCAL_OUTPUT_ROOT}/release-stage"
@ -37,7 +37,7 @@ readonly RELEASE_IMAGES="${LOCAL_OUTPUT_ROOT}/release-images"
# OpenIM github account info # OpenIM github account info
readonly OPENIM_GITHUB_ORG=OpenIMSDK readonly OPENIM_GITHUB_ORG=OpenIMSDK
readonly OPENIM_GITHUB_REPO=openim readonly OPENIM_GITHUB_REPO=Open-IM-Server
readonly ARTIFACT=openim.tar.gz readonly ARTIFACT=openim.tar.gz
readonly CHECKSUM=${ARTIFACT}.sha1sum readonly CHECKSUM=${ARTIFACT}.sha1sum

@ -24,7 +24,7 @@ release.run: release.verify release.ensure-tag
## release.verify: Check if a tool is installed and install it ## release.verify: Check if a tool is installed and install it
.PHONY: release.verify .PHONY: release.verify
release.verify: tools.verify.git-chglog tools.verify.github-release tools.verify.coscmd release.verify: tools.verify.git-chglog tools.verify.github-release tools.verify.coscmd tools.verify.coscli
## release.tag: release the project ## release.tag: release the project
.PHONY: release.tag .PHONY: release.tag

@ -133,6 +133,7 @@ install.github-release:
## install.coscli: Install coscli, used to upload files to cos ## install.coscli: Install coscli, used to upload files to cos
# example: ./coscli cp/sync -r /home/off-line/docker-off-line/ cos://openim-1306374445/openim/image/amd/off-line/off-line/ -e cos.ap-guangzhou.myqcloud.com # example: ./coscli cp/sync -r /home/off-line/docker-off-line/ cos://openim-1306374445/openim/image/amd/off-line/off-line/ -e cos.ap-guangzhou.myqcloud.com
# https://cloud.tencent.com/document/product/436/71763 # https://cloud.tencent.com/document/product/436/71763
# amd64
.PHONY: install.coscli .PHONY: install.coscli
install.coscli: install.coscli:
@wget -q https://ghproxy.com/https://github.com/tencentyun/coscli/releases/download/v0.13.0-beta/coscli-linux -O ${TOOLS_DIR}/coscli @wget -q https://ghproxy.com/https://github.com/tencentyun/coscli/releases/download/v0.13.0-beta/coscli-linux -O ${TOOLS_DIR}/coscli

Loading…
Cancel
Save