You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-07-12 22:21:40 +02:00
bump version to 0.7
This commit is contained in:
@ -46,7 +46,7 @@ pipeline:
|
|||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
repo: drone/drone
|
repo: drone/drone
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
tag: [ 0.6, 0.6.0 ]
|
tag: [ 0.7, 0.7.0 ]
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
@ -96,7 +96,16 @@ func RPCHandler(c *gin.Context) {
|
|||||||
c.Request.Header.Get("X-Drone-Version"),
|
c.Request.Header.Get("X-Drone-Version"),
|
||||||
)
|
)
|
||||||
logrus.Debugf("agent connected: ip address %s: version %s", c.ClientIP(), agent)
|
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)
|
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)
|
c.String(409, "Version mismatch. Agent version %s < Server version %s", agent, version.Version)
|
||||||
return
|
return
|
||||||
|
@ -6,7 +6,7 @@ var (
|
|||||||
// VersionMajor is for an API incompatible changes
|
// VersionMajor is for an API incompatible changes
|
||||||
VersionMajor int64
|
VersionMajor int64
|
||||||
// VersionMinor is for functionality in a backwards-compatible manner
|
// VersionMinor is for functionality in a backwards-compatible manner
|
||||||
VersionMinor int64 = 6
|
VersionMinor int64 = 7
|
||||||
// VersionPatch is for backwards-compatible bug fixes
|
// VersionPatch is for backwards-compatible bug fixes
|
||||||
VersionPatch int64
|
VersionPatch int64
|
||||||
// VersionPre indicates prerelease
|
// VersionPre indicates prerelease
|
||||||
|
Reference in New Issue
Block a user