You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-07-13 01:00:22 +02:00
update tag.sh to create signed tags. (#604)
* update tag.sh to create signed tags. * rm tag_latest_modulesh.sh
This commit is contained in:
4
tag.sh
4
tag.sh
@ -74,11 +74,11 @@ TAG_CURRENT=`git tag | grep '^v' | tail -1`
|
|||||||
PACKAGE_DIRS=$(find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; | egrep -v 'tools' | sed 's/^\.\///' | sort)
|
PACKAGE_DIRS=$(find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; | egrep -v 'tools' | sed 's/^\.\///' | sort)
|
||||||
|
|
||||||
# Create tag for root module
|
# Create tag for root module
|
||||||
git tag -a "${TAG}" -m "Version ${TAG}" ${COMMIT_HASH}
|
git tag -a "${TAG}" -s -m "Version ${TAG}" ${COMMIT_HASH}
|
||||||
|
|
||||||
# Create tag for submodules
|
# Create tag for submodules
|
||||||
for dir in $PACKAGE_DIRS; do
|
for dir in $PACKAGE_DIRS; do
|
||||||
git tag -a "${dir}/${TAG}" -m "Version ${dir}/${TAG}" ${COMMIT_HASH}
|
git tag -a "${dir}/${TAG}" -s -m "Version ${dir}/${TAG}" ${COMMIT_HASH}
|
||||||
done
|
done
|
||||||
|
|
||||||
# Generate commit logs
|
# Generate commit logs
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Copyright The OpenTelemetry Authors
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
set -xe
|
|
||||||
|
|
||||||
cd $(dirname $0)
|
|
||||||
|
|
||||||
LATEST_TAG=$(git tag -l|grep '^v'|sort -V -r|head -n 1)
|
|
||||||
LATEST_REF=$(git rev-parse $LATEST_TAG)
|
|
||||||
PACKAGE_DIRS=$(find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; | sort)
|
|
||||||
|
|
||||||
for dir in $PACKAGE_DIRS; do
|
|
||||||
git tag -m "Submodule ${LATEST_TAG}" -s ${dir#./}/${LATEST_TAG} ${LATEST_REF}
|
|
||||||
done
|
|
Reference in New Issue
Block a user