mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 14:04:12 +01:00
Improve publish docker script
This commit is contained in:
parent
c229425534
commit
bd075919f3
1 changed files with 12 additions and 2 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue