Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e126ea94bc |
+5
-5
@@ -1591,6 +1591,7 @@ def licenseCheck(ctx):
|
||||
}]
|
||||
|
||||
def releaseDockerManifest(ctx):
|
||||
spec_latest = "manifest-latest.tmpl"
|
||||
steps = [{
|
||||
"name": "execute",
|
||||
"image": PLUGINS_MANIFEST,
|
||||
@@ -1607,8 +1608,7 @@ def releaseDockerManifest(ctx):
|
||||
},
|
||||
}]
|
||||
|
||||
# only create latest tag for stable releases
|
||||
if len(ctx.build.ref.split("-")) == 1:
|
||||
if len(ctx.build.ref.split("-")) == 2:
|
||||
steps.append(
|
||||
{
|
||||
"name": "execute-latest",
|
||||
@@ -1620,7 +1620,7 @@ def releaseDockerManifest(ctx):
|
||||
"password": {
|
||||
"from_secret": "docker_password",
|
||||
},
|
||||
"spec": "ocis/docker/manifest-latest.tmpl",
|
||||
"spec": "ocis/docker/%s" % spec_latest,
|
||||
"auto_tag": True,
|
||||
"ignore_missing": True,
|
||||
},
|
||||
@@ -1629,7 +1629,7 @@ def releaseDockerManifest(ctx):
|
||||
"refs/tags/v*",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
return {
|
||||
@@ -1738,7 +1738,7 @@ def releaseDockerReadme(ctx):
|
||||
"from_secret": "docker_password",
|
||||
},
|
||||
"PUSHRM_TARGET": "owncloud/${DRONE_REPO_NAME}",
|
||||
"PUSHRM_SHORT": "Docker images for Infinite Scale stable releases",
|
||||
"PUSHRM_SHORT": "Docker images for %s" % (ctx.repo.name),
|
||||
"PUSHRM_FILE": "README.md",
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user