bump version to 0.7

This commit is contained in:
Brad Rydzewski 2017-05-24 16:45:56 +02:00
parent 85c86272c1
commit 62876d6ad9
3 changed files with 12 additions and 3 deletions

View file

@ -46,7 +46,7 @@ pipeline:
image: plugins/docker
repo: drone/drone
secrets: [ docker_username, docker_password ]
tag: [ 0.6, 0.6.0 ]
tag: [ 0.7, 0.7.0 ]
when:
event: tag

View file

@ -96,7 +96,16 @@ func RPCHandler(c *gin.Context) {
c.Request.Header.Get("X-Drone-Version"),
)
logrus.Debugf("agent connected: ip address %s: version %s", c.ClientIP(), agent)
if agent.LessThan(version.Version) {
// if agent.LessThan(version.Version) {
// logrus.Warnf("Version mismatch. Agent version %s < Server version %s", agent, version.Version)
// c.String(409, "Version mismatch. Agent version %s < Server version %s", agent, version.Version)
// return
// }
switch agent.Minor {
case 6, 7:
// these versions are ok
default:
logrus.Warnf("Version mismatch. Agent version %s < Server version %s", agent, version.Version)
c.String(409, "Version mismatch. Agent version %s < Server version %s", agent, version.Version)
return

View file

@ -6,7 +6,7 @@ var (
// VersionMajor is for an API incompatible changes
VersionMajor int64
// VersionMinor is for functionality in a backwards-compatible manner
VersionMinor int64 = 6
VersionMinor int64 = 7
// VersionPatch is for backwards-compatible bug fixes
VersionPatch int64
// VersionPre indicates prerelease