|
|
@@ -0,0 +1,25 @@
|
|
|
+param(
|
|
|
+ [string] $vNext = ""
|
|
|
+)
|
|
|
+
|
|
|
+$ErrorActionPreference = "Inquire"
|
|
|
+
|
|
|
+$latestVersion = $(git describe --tags --abbrev=0)
|
|
|
+Write-Host "Latest version was $latestVersion"
|
|
|
+
|
|
|
+if ([string]::IsNullOrEmpty($vNext)) {
|
|
|
+ $vNext = Read-Host "What should the next version be?"
|
|
|
+}
|
|
|
+
|
|
|
+Write-Output "Preparing release $vNext"
|
|
|
+
|
|
|
+$confirmation = Read-Host "Proceed? [y/n]"
|
|
|
+
|
|
|
+Write-Output "Tagging current commit with git"
|
|
|
+git tag $vNext
|
|
|
+
|
|
|
+Write-Output "Tagging latest runners-meet Docker image"
|
|
|
+docker tag "executry/runners-meet:latest" "executry/runners-meet:$vNext"
|
|
|
+
|
|
|
+Write-Output "Pushing image to DockerHub"
|
|
|
+docker push "executry/runners-meet:$vNext"
|