Ai
3 Star 12 Fork 0

Gitee 极速下载/fn-project

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/fnproject/fn
克隆/下载
release.sh 984 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
set -exuo pipefail
user="fnproject"
image="fnserver"
# ensure working dir is clean
git status
if [[ -z $(git status -s) ]]
then
echo "tree is clean"
else
echo "tree is dirty, please commit changes before running this"
exit 1
fi
version_file="api/version/version.go"
if [ -z $(grep -m1 -Eo "[0-9]+\.[0-9]+\.[0-9]+" $version_file) ]; then
echo "did not find semantic version in $version_file"
exit 1
fi
perl -i -pe 's/\d+\.\d+\.\K(\d+)/$1+1/e' $version_file
version=$(grep -m1 -Eo "[0-9]+\.[0-9]+\.[0-9]+" $version_file)
echo "Version: $version"
make docker-build
# Push the version bump and tags laid down previously
git add -u
git commit -m "$image: v$version release [skip ci]"
git tag -f -a "v$version" -m "version v$version"
git push --tags origin master
# Finally, push docker images
docker tag $user/$image:latest $user/$image:$version
docker push $user/$image
(cd images/fn-test-utils && ./release.sh)
(cd images/fn-status-checker && ./release.sh)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/fn-project.git
git@gitee.com:mirrors/fn-project.git
mirrors
fn-project
fn-project
master

搜索帮助