1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-11-28 08:38:51 +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:
Rahul Patel 2020-03-30 20:53:10 -07:00 committed by GitHub
parent 57d5f55600
commit af0514b085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 29 deletions

4
tag.sh
View File

@ -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)
# 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
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
# Generate commit logs

View File

@ -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