mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 01:43:50 +01:00
Improve publish docker script
This commit is contained in:
parent
c229425534
commit
bd075919f3
@ -1,4 +1,14 @@
|
|||||||
|
param(
|
||||||
|
[string]$suffix
|
||||||
|
)
|
||||||
|
|
||||||
|
if ($suffix)
|
||||||
|
{
|
||||||
|
$suffix = "-$suffix"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$ver = [regex]::Match((Get-Content Build/Version.csproj), '<Version>([^<]+)<').Groups[1].Value
|
$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 checkout master
|
||||||
git push origin "v$ver" --force
|
git push origin "v$ver$suffix" --force
|
Loading…
Reference in New Issue
Block a user