ci: version from the tag or the commits since it; dev images from main gated on tests; recognise -dev. tags [CI SKIP]
This commit is contained in:
1 parent
a3338e1cf3
commit
a9f78f99df
13 files changed
+124
-51
No files matched your search
@@ -15,11 +15,9 @@ tag="${CI_COMMIT_TAG:-}"
|
||||
|
||||
version="${tag#v}"
|
||||
root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
project_version="$(sed -n 's#.*<Version>\(.*\)</Version>.*#\1#p' "$root/backend/Directory.Build.props" | head -1)"
|
||||
if [[ "$version" != "$project_version" ]]; then
|
||||
echo "tag version $version does not match project version $project_version" >&2
|
||||
exit 1
|
||||
fi
|
||||
# 版本取自 tag:写进工作区的 Directory.Build.props(仓库里的 <Version> 只是占位,发版不用再提交 bump)
|
||||
source "$root/ci/version.sh"
|
||||
moshiro_apply_version
|
||||
|
||||
gitea_base="${GITEA_BASE:-http://127.0.0.1:3100}"
|
||||
gitea_base="${gitea_base%/}"
|
||||
|
||||
Reference in new issue
Block a user