fix: docker install copies Dockerfile + sources for build
CI / test (push) Successful in 3m11s

This commit is contained in:
2026-08-03 19:54:41 -04:00
parent 5191e88b73
commit 4fbac2121a
+21 -3
View File
@@ -50,12 +50,30 @@ state:
println(' Wrote: ${target_dir}/dashboard.html')
}
// Copy Dockerfile and sources for build
if os.exists('Dockerfile') {
os.cp('Dockerfile', '${target_dir}/Dockerfile') or {}
println(' Wrote: ${target_dir}/Dockerfile')
}
// Copy V source files
src_files := ['main.v', 'server.v', 'config.v', 'log.v', 'ntfy.v', 'dedup.v',
'docker_watcher.v', 'service.v', 'filter_outgoing.v', 'metrics.v',
'docker_install.v', 'v.mod', 'dashboard.html', 'ntfy-bridge.example.yaml',
'sources/event.v', 'sources/gitea.v', 'sources/uptime_kuma.v',
'sources/docker.v', 'sources/generic.v', 'sources/cron.v',
'sources/http_poll.v']
for file in src_files {
if os.exists(file) {
target := '${target_dir}/${file}'
os.mkdir_all(os.dir(target)) or {}
os.cp(file, target) or {}
}
}
// docker-compose.yml
mut compose := 'services:
ntfy-bridge:
build:
context: https://git.dracodev.net/bruno/ntfy-bridge.git
dockerfile: Dockerfile
build: .
container_name: ntfy-bridge
restart: unless-stopped
ports: