diff --git a/drone/Dockerfile b/drone/Dockerfile new file mode 100644 index 0000000..9354c99 --- /dev/null +++ b/drone/Dockerfile @@ -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" diff --git a/drone/fly.toml b/drone/fly.toml new file mode 100644 index 0000000..ea1f482 --- /dev/null +++ b/drone/fly.toml @@ -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"