Improve publish docker script

This commit is contained in:
nicolas.dorier 2023-02-26 00:19:59 +09:00
parent c229425534
commit bd075919f3
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -1,4 +1,14 @@
param(
[string]$suffix
)
if ($suffix)
{
$suffix = "-$suffix"
}
$ver = [regex]::Match((Get-Content Build/Version.csproj), '<Version>([^<]+)<').Groups[1].Value
git tag -a "v$ver" -m "$ver"
git tag -a "v$ver$suffix" -m "$ver$suffix"
git checkout master
git push origin "v$ver" --force
git push origin "v$ver$suffix" --force