1 Star 0 Fork 0

CNCF/landscape-graph

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.update-versions.sh 812 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
#set -x
VERSION="v0.7.0"
SHORTSHA=$(git rev-parse --short HEAD)
LONGSHA=$(git rev-parse HEAD)
TAG_VERSION=":$VERSION"
TAG_SHORTSHA=":$SHORTSHA"
TAG_LONGSHA=":$LONGSHA"
BUILD_WHEN=$(date)
BUILD_WHEN_UTC=$(date -u +"%Y-%m-%dT%H-%M-%SZ")
COMMENT="hostname: $(hostname), who=$(whoami)"
cat <<EOF_VERSIONS > _versions.env
#
# This file is generated by build.update-versions.sh
#
VERSION="$VERSION"
SHORTSHA="$SHORTSHA"
LONGSHA="$LONGSHA"
# used to tag docker images when built from docker compose build (via ./build.sh)
TAG_VERSION="$TAG_VERSION"
TAG_SHORTSHA="$TAG_SHORTSHA"
TAG_LONGSHA="$TAG_LONGSHA"
# injected as labels into the docker image
BUILD_WHEN="$BUILD_WHEN"
BUILD_WHEN_UTC="$BUILD_WHEN_UTC"
COMMENT="$COMMENT"
EOF_VERSIONS
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cncf/landscape-graph.git
git@gitee.com:cncf/landscape-graph.git
cncf
landscape-graph
landscape-graph
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385