Add drone

main
mat ess 2022-10-19 01:18:30 -04:00
parent fcc4620274
commit 83c64454b7
2 changed files with 57 additions and 0 deletions

7
drone/Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM drone/drone-runner-docker:latest as runner
FROM drone/drone:latest
COPY --from=runner /bin/tmate /bin/
COPY --from=runner /bin/drone-runner-docker /bin/
LABEL com.centurylinklabs.watchtower.stop-signal="SIGINT"

50
drone/fly.toml Normal file
View File

@ -0,0 +1,50 @@
# fly.toml file generated for drone-mat-services on 2022-10-18T23:11:25-04:00
app = "drone-mat-services"
kill_signal = "SIGINT"
kill_timeout = 5
[processes]
server = "/bin/drone-server"
runner = "/bin/drone-runner-docker"
[build]
[env]
DRONE_GITEA_SERVER = "https://git.mat.services"
DRONE_SERVER_HOST = "build.mat.services"
DRONE_JSONNET_ENABLED = true
DRONE_REGISTRATION_CLOSED = true
DRONE_RPC_HOST = "localhost"
DRONE_RPC_PROTO = "http"
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
processes = ["server"]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"