3 Star 10 Fork 0

Gitee 极速下载 / fn-project

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/fnproject/fn
克隆/下载
changed-since-last.sh 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
jan grant 提交于 2018-02-01 12:43 . Selective releasing (#708)
#!/bin/bash
set -e
# Has a subset of the tree changed since the last tag of a particular kind?
# (If so, we'll need to rebuild and re-release, assuming the tests pass.)
RELEASE_BRANCH=origin/master
FIRST_COMMIT="$(git rev-list "$RELEASE_BRANCH" | tail -1)"
FN_TAG="$(git tag --merged "$RELEASE_BRANCH" --sort='v:refname' '[0-9]*' | tail -1)"
FN_PREV="$FN_TAG"
[[ -z "$FN_TAG" ]] && FN_TAG="$FIRST_COMMIT"
[[ -z "$FN_PREV" ]] && FN_PREV=0.0.0
DIND_TAG="$(git tag --merged "$RELEASE_BRANCH" --sort='v:refname' 'dind-*' | tail -1)"
DIND_PREV="$DIND_TAG"
[[ -z "$DIND_TAG" ]] && DIND_TAG="$FIRST_COMMIT"
[[ -z "$DIND_PREV" ]] && DIND_PREV=dind-0.0.0
# Which pieces of the tree are changed since to each tag?
# We are only interested in parts of the tree corresponding to each tag's aegis
# We are *not* interested in solely-DIND changes if we're considering a release of fnserver
# DIND bumps only if there are changes under images/dind.
[[ -n "$(git diff --dirstat=files,0,cumulative "$DIND_TAG" | awk '$2 ~ /^(images\/dind)\/$/')" ]] && DIND_NEEDED=yes
# FN bumps only if there are changes *other* than images/dind/
[[ -n "$(git diff --dirstat=files,0,cumulative "$FN_TAG" | awk '$2 !~ /^(images\/dind)\/$/')" ]] && FN_NEEDED=yes
# Finally, some of these pieces are used as build tools for later ones.
[[ -n "$DIND_NEEDED" && -z "$FN_NEEDED" ]] && FN_NEEDED=dep
cat <<-EOF
# Change summary: "dep" means a rebuild required due to a dependency change
DIND_NEEDED=$DIND_NEEDED
DIND_TAG="$DIND_TAG"
DIND_PREV="$DIND_PREV"
FN_NEEDED=$FN_NEEDED
FN_TAG="$FN_TAG"
FN_PREV="$FN_PREV"
EOF
Go
1
https://gitee.com/mirrors/fn-project.git
git@gitee.com:mirrors/fn-project.git
mirrors
fn-project
fn-project
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891