From ef9b32378b961b667982b92941ca469f35a3549c Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 28 Apr 2016 12:12:47 -0700 Subject: [PATCH 1/2] bump version --- .drone.yml | 2 +- drone/server/server.go | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 719647e4..52b56f9b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -35,7 +35,7 @@ publish: password: $$DOCKER_PASS email: $$DOCKER_EMAIL repo: drone/drone - tag: [ "latest" ] + tag: [ "latest", "0.4.2" ] when: repo: drone/drone branch: master diff --git a/drone/server/server.go b/drone/server/server.go index 551507a4..e22be946 100644 --- a/drone/server/server.go +++ b/drone/server/server.go @@ -2,6 +2,7 @@ package server import ( "net/http" + "os" "time" "github.com/drone/drone/router" @@ -48,11 +49,26 @@ var ServeCmd = cli.Command{ Name: "experimental", Usage: "start the server with experimental features", }, + cli.BoolFlag{ + Name: "agreement.ack", + EnvVar: "I_UNDERSTAND_I_AM_USING_AN_UNSTABLE_VERSION", + Usage: "agree to terms of use.", + }, + cli.BoolFlag{ + Name: "agreement.fix", + EnvVar: "I_AGREE_TO_FIX_BUGS_AND_NOT_FILE_BUGS", + Usage: "agree to terms of use.", + }, }, } func start(c *cli.Context) error { + if c.Bool("agreement.ack") == false || c.Bool("agreement.fix") == false { + println(agreement) + os.Exit(1) + } + // debug level if requested by user if c.Bool("debug") { logrus.SetLevel(logrus.DebugLevel) @@ -87,3 +103,28 @@ func start(c *cli.Context) error { handler, ) } + +var agreement = ` +--- + + +You are attempting to use the unstable channel. This build is experimental and +has known bugs and compatibility issues, and is not intended for general use. + +Please consider using the latest stable release instead: + + drone/drone:0.4.2 + +If you are attempting to build from source please use the latest stable tag: + + v0.4.2 + +If you are interested in testing this experimental build and assisting with +development you will need to set the following environment variables to proceed: + + I_UNDERSTAND_I_AM_USING_AN_UNSTABLE_VERSION=true + I_AGREE_TO_FIX_BUGS_AND_NOT_FILE_BUGS=true + + +--- +` From e903366ee07d4aa605edfe023ede633c7b2ceac8 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 28 Apr 2016 12:16:35 -0700 Subject: [PATCH 2/2] updated signature [CI SKIP] --- .drone.sec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.sec b/.drone.sec index 9e1a6d53..97508365 100644 --- a/.drone.sec +++ b/.drone.sec @@ -1 +1 @@ -eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.r4ScD0KSIWeQR-1OfO7OkmSOk12y1hmqCt2keJ1i3VZD-9wYtTV2PnkpUMkgAp0teUVpmR1n6ndbLAYsUljro2KYMH1PrWI9pRA9aZNWZr-aVTjHMDJFXWgMr6ecxN9bmYMwzv0lAJWRcrvPdyhr3yaiGsnjYH7c9FZGUMDwh191sK7iRdFfDNbYF6AMY2_2pkrUIkyMdPPK1FF0ILsSHHXHgUPSMCfURvaKF2MrVSccHP5fQk-9q5mdob79UkGAqtMHAyFq0dPmBQvZrKSVkDBEYp7exwGLs8bJqx3QFCmN7sXN6DXtJlNdCe616dzzfLDMZ4-qG5UEv74VR6lX8w.mDyt_QqhOtpAfO8t.b277f0m6GO1B3pWE6jctayN2_HdmfhPG4nXjkD__p9Y5ktRfQK4QMiOj4sQPny1yxxBvvyKOlVB7tQ9fSivWnACVnJFZieZ6FmoEtHsf63tZadS5idEkF5S0zY8OSaBZ6SuHb3omrOI1xmz53TXLcI5Ox-7xVMelWT53FTkFZ-s7fBc3p2zYIvDHv17rhEk6ocGDI_euHnbjT-r3nGroESVnMPBynTw8PhhR3EOENgoTH4rcH3xLK3yOjHKNl5RPkfrIUawpeSNBQMCsFVZIgvGwGFnmoJ4Y4ASRQWnL0iupycP45k_NYD_-d3UDJD02B_2GPNY6OHzp-OFbBDXlov5tmVzA0WzPSxbbSWhMdgEzJthhpPuZ_77lZ4cwx01UgCAiJA.akTuVfyRAJ8CYP-aCo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