-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
automation: splitting the determining and publishing of the Git Tag
This is needed as a part of hashicorp/pandora#3601 since we're going to be publishing multiple Go Modules at different paths - but the version number of each of them is going to be the same. As such this PR splits the determining and publishing of the Git Tag - such that the existing update tooling continues to work with minor changes (tracked in hashicorp/terraform-provider-azurerm#24602)
- Loading branch information
1 parent
09759c4
commit aaa0602
Showing
3 changed files
with
34 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
set -e | ||
|
||
function publish { | ||
local version=$1 | ||
|
||
echo "Tagging as '$version'.." | ||
git tag "$version" | ||
|
||
echo "Pushing Tags.." | ||
git push --tags | ||
} | ||
|
||
function main { | ||
local version=$1 | ||
|
||
publish "$version" | ||
} | ||
|
||
main "$1" |