fix: Docker requires pre-built Linux binary (cannot cross-compile on Windows)
CI / test (push) Failing after 16s

This commit is contained in:
2026-08-03 20:51:53 -04:00
parent 1c847a824d
commit 151dd4a1a8
+3 -11
View File
@@ -50,21 +50,13 @@ state:
println(' Wrote: ${target_dir}/dashboard.html') println(' Wrote: ${target_dir}/dashboard.html')
} }
// Copy Dockerfile and build Linux binary // Dockerfile for reference (binary must be built separately)
if os.exists('Dockerfile') { if os.exists('Dockerfile') {
os.cp('Dockerfile', '${target_dir}/Dockerfile') or {} os.cp('Dockerfile', '${target_dir}/Dockerfile') or {}
println(' Wrote: ${target_dir}/Dockerfile') println(' Wrote: ${target_dir}/Dockerfile')
} }
// Cross-compile Linux binary println(' Note: Place a Linux binary named "ntfy-bridge" in ${target_dir}/ to build.')
println(' Building Linux binary (v -os linux)...') println(' Build: v -os linux -o ${target_dir}/ntfy-bridge . (requires Linux or WSL)')
build_result := os.execute('v -os linux -o ${target_dir}/ntfy-bridge .')
if build_result.exit_code != 0 {
println(' Warning: Could not cross-compile Linux binary.')
println(' ${build_result.output}')
println(' You will need a Linux binary named "ntfy-bridge" in ${target_dir}/')
} else {
println(' Built: ${target_dir}/ntfy-bridge')
}
// docker-compose.yml // docker-compose.yml
mut compose := 'services: mut compose := 'services: