parent
06600c9a51
commit
4d20bdebe3
@ -1,14 +0,0 @@
|
|||||||
[CmdletBinding()]
|
|
||||||
param (
|
|
||||||
$Runtime = "linux-musl-x64"
|
|
||||||
)
|
|
||||||
|
|
||||||
$artifactsDir = "$PSScriptRoot\artifacts"
|
|
||||||
|
|
||||||
Remove-Item $artifactsDir -Recurse -Force -ErrorAction SilentlyContinue
|
|
||||||
|
|
||||||
Push-Location $PSScriptRoot\..
|
|
||||||
& ci\Publish.ps1 -NoSingleFile `
|
|
||||||
-OutputDir "$artifactsDir\recyclarr-$Runtime" `
|
|
||||||
-Runtime $Runtime
|
|
||||||
Pop-Location
|
|
@ -0,0 +1,36 @@
|
|||||||
|
[CmdletBinding()]
|
||||||
|
param (
|
||||||
|
[string] $Runtime = "linux-musl-x64",
|
||||||
|
[string[]] $RunArgs
|
||||||
|
)
|
||||||
|
|
||||||
|
$artifactsDir = "$PSScriptRoot\artifacts"
|
||||||
|
|
||||||
|
# Delete old build artifacts
|
||||||
|
Remove-Item $artifactsDir -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
|
# Publish new build artifacts
|
||||||
|
Push-Location $PSScriptRoot\..
|
||||||
|
try {
|
||||||
|
& ci\Publish.ps1 -NoSingleFile `
|
||||||
|
-OutputDir "$artifactsDir\recyclarr-$Runtime" `
|
||||||
|
-Runtime $Runtime
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
Pop-Location
|
||||||
|
}
|
||||||
|
|
||||||
|
# Start the corresponding radarr/sonarr docker containers for testing/debugging
|
||||||
|
Push-Location "$PSScriptRoot\..\debugging"
|
||||||
|
try {
|
||||||
|
docker compose up -d --pull always
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
Pop-Location
|
||||||
|
}
|
||||||
|
|
||||||
|
# Finally, build the docker image and run it
|
||||||
|
docker compose build
|
||||||
|
# TODO: Use `--build` when it releases:
|
||||||
|
# https://github.com/docker/compose/issues/10003
|
||||||
|
docker compose run --rm recyclarr @RunArgs
|
@ -1,9 +0,0 @@
|
|||||||
& $PSScriptRoot\Build-Artifacts.ps1
|
|
||||||
|
|
||||||
Push-Location "$PSScriptRoot\..\debugging"
|
|
||||||
docker compose pull
|
|
||||||
docker compose up -d
|
|
||||||
Pop-Location
|
|
||||||
|
|
||||||
docker compose build
|
|
||||||
docker compose run --rm recyclarr $args
|
|
Loading…
Reference in new issue