Correctly push tags to Gerrit

The tags were missing from the branch push to Gerrit.  Also, tags
pushed to Gerrit must be signed, so gpg and git must both be
properly configured for this to run now.

Change-Id: I97f3a4364f090e1b42ac0fc2ba7554c164013345
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This commit is contained in:
Dean Troyer 2018-08-10 13:28:48 -05:00
parent 2f6fa5e4e2
commit 8966e88851
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ function branch_repo {
fi
# tag branch point at $sha
git tag -f $tag $sha
git tag -s -m "Branch $branch" -f $tag $sha
# Push the new goodness back up
if [[ "$r" == "starlingx" ]]; then
@ -102,7 +102,7 @@ function branch_repo {
# push
if [[ -z $DRY_RUN ]]; then
git push gerrit $branch
git push --tags gerrit $branch
else
echo "### skipping push to $branch"
fi