bump version to 0.7
This commit is contained in:
parent
85c86272c1
commit
62876d6ad9
3 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue