From 9c2232cebc89324abd5d6499da095e1a15f81ddb Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 8 Feb 2021 14:52:13 +0100 Subject: Add Drone CI --- app/drone-ci/deploy/drone.hcl | 123 ++++++++++++++++++++++ app/drone-ci/secrets/drone-ci/cookie_secret | 1 + app/drone-ci/secrets/drone-ci/db_enc_secret | 1 + app/drone-ci/secrets/drone-ci/db_pass | 1 + app/drone-ci/secrets/drone-ci/db_user | 1 + app/drone-ci/secrets/drone-ci/oauth_client_id | 1 + app/drone-ci/secrets/drone-ci/oauth_client_secret | 1 + app/drone-ci/secrets/drone-ci/rpc_secret | 1 + app/drone-ci/secrets/drone-ci/s3_ak | 1 + app/drone-ci/secrets/drone-ci/s3_bucket | 1 + app/drone-ci/secrets/drone-ci/s3_sk | 1 + app/secretmgr.py | 3 + 12 files changed, 136 insertions(+) create mode 100644 app/drone-ci/deploy/drone.hcl create mode 100644 app/drone-ci/secrets/drone-ci/cookie_secret create mode 100644 app/drone-ci/secrets/drone-ci/db_enc_secret create mode 100644 app/drone-ci/secrets/drone-ci/db_pass create mode 100644 app/drone-ci/secrets/drone-ci/db_user create mode 100644 app/drone-ci/secrets/drone-ci/oauth_client_id create mode 100644 app/drone-ci/secrets/drone-ci/oauth_client_secret create mode 100644 app/drone-ci/secrets/drone-ci/rpc_secret create mode 100644 app/drone-ci/secrets/drone-ci/s3_ak create mode 100644 app/drone-ci/secrets/drone-ci/s3_bucket create mode 100644 app/drone-ci/secrets/drone-ci/s3_sk diff --git a/app/drone-ci/deploy/drone.hcl b/app/drone-ci/deploy/drone.hcl new file mode 100644 index 0000000..8d39422 --- /dev/null +++ b/app/drone-ci/deploy/drone.hcl @@ -0,0 +1,123 @@ +job "drone-ci" { + datacenters = ["dc1"] + type = "service" + + group "server" { + count = 1 + + network { + port "web_port" { + to = 80 + } + } + + task "drone_server" { + driver = "docker" + config { + image = "drone/drone:1.10.1" + ports = [ "web_port" ] + } + + template { + data = <...") -- cgit v1.2.3