Move CI runners to Droplet and enable application HTTPS
vpn-dns-gateway/pipeline/pr-main This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[ValidateSet('Check', 'Register', 'Start', 'Logs', 'Stop')]
|
||||
[string]$Action = 'Check'
|
||||
[string]$Action = 'Check',
|
||||
[switch]$AllowLaptopFallback
|
||||
)
|
||||
$ErrorActionPreference = 'Stop'
|
||||
if ($Action -in @('Register', 'Start') -and -not $AllowLaptopFallback) {
|
||||
throw 'This runner now runs on The-Ocean. Stop the remote copy first, then pass -AllowLaptopFallback for an intentional laptop fallback. Never run both copies of the registration.'
|
||||
}
|
||||
$composeFile = Join-Path $PSScriptRoot 'compose.yaml'
|
||||
$composeArgs = @('compose', '--project-name', 'ssw590-local-runner', '-f', $composeFile)
|
||||
$runnerImage = 'docker.io/gitea/runner@sha256:66d80966792e621c9761c47919644198d35fd1c297e9a01e69ed3c1ae37db0c7'
|
||||
|
||||
Reference in New Issue
Block a user