Compare commits

..
Author SHA1 Message Date
Michael Barz 46c46eb48c Merge pull request #9963 from owncloud/stable-latest
chore: add latest manifest to stable tag
2024-09-02 15:30:40 +02:00
Michael Barz e060eb8b44 chore: add latest manifest to stable tag 2024-09-02 13:14:16 +02:00
+5 -5
View File
@@ -1591,7 +1591,6 @@ def licenseCheck(ctx):
}]
def releaseDockerManifest(ctx):
spec_latest = "manifest-latest.tmpl"
steps = [{
"name": "execute",
"image": PLUGINS_MANIFEST,
@@ -1608,7 +1607,8 @@ def releaseDockerManifest(ctx):
},
}]
if len(ctx.build.ref.split("-")) == 2:
# only create latest tag for stable releases
if len(ctx.build.ref.split("-")) == 1:
steps.append(
{
"name": "execute-latest",
@@ -1620,7 +1620,7 @@ def releaseDockerManifest(ctx):
"password": {
"from_secret": "docker_password",
},
"spec": "ocis/docker/%s" % spec_latest,
"spec": "ocis/docker/manifest-latest.tmpl",
"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 %s" % (ctx.repo.name),
"PUSHRM_SHORT": "Docker images for Infinite Scale stable releases",
"PUSHRM_FILE": "README.md",
},
},