Release: weekly deploy
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Push Docker image to Gitea over LAN (avoids KeenDNS hairpin slow upload).
|
||||
param(
|
||||
[string]$Tag = "latest",
|
||||
[string[]]$Tags = @('latest'),
|
||||
[switch]$SkipHosts
|
||||
)
|
||||
|
||||
@@ -55,10 +55,12 @@ if (-not $SkipHosts) {
|
||||
$after = Get-GiteaDnsAddress
|
||||
Write-Host "After override, resolves to: $after"
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "Pushing ${Image}:${Tag} ..."
|
||||
docker push "${Image}:${Tag}"
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
foreach ($tag in ($Tags | Select-Object -Unique)) {
|
||||
Write-Host ""
|
||||
Write-Host "Pushing ${Image}:$tag ..."
|
||||
docker push "${Image}:$tag"
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "Done. Remove hosts entry ($HostsMarker) when finished if you no longer need LAN override." -ForegroundColor Cyan
|
||||
|
||||
Reference in New Issue
Block a user