mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 20:29:54 -06:00
Merge pull request #9400 from owncloud/artifacts-latest
ci: use latest docker for tags and add master tag
This commit is contained in:
24
.drone.star
24
.drone.star
@@ -1688,8 +1688,10 @@ def licenseCheck(ctx):
|
||||
|
||||
def releaseDockerManifest(repo, build_type):
|
||||
spec = "manifest.tmpl"
|
||||
spec_latest = "manifest-latest.tmpl"
|
||||
if "rolling" not in repo:
|
||||
spec = "manifest-production.tmpl"
|
||||
spec = "manifest.production.tmpl"
|
||||
spec_latest = "manifest.production-latest.tmpl"
|
||||
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
@@ -1715,6 +1717,26 @@ def releaseDockerManifest(repo, build_type):
|
||||
"ignore_missing": True,
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "execute-latest",
|
||||
"image": PLUGINS_MANIFEST,
|
||||
"settings": {
|
||||
"username": {
|
||||
"from_secret": "docker_username",
|
||||
},
|
||||
"password": {
|
||||
"from_secret": "docker_password",
|
||||
},
|
||||
"spec": "ocis/docker/%s" % spec_latest,
|
||||
"auto_tag": True,
|
||||
"ignore_missing": True,
|
||||
},
|
||||
"when": {
|
||||
"ref": [
|
||||
"refs/tags/v*",
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
|
||||
11
ocis/docker/manifest-latest.tmpl
Normal file
11
ocis/docker/manifest-latest.tmpl
Normal file
@@ -0,0 +1,11 @@
|
||||
image: owncloud/ocis-rolling:latest
|
||||
manifests:
|
||||
- image: owncloud/ocis-rolling:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: linux
|
||||
- image: owncloud/ocis-rolling:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
|
||||
platform:
|
||||
architecture: arm64
|
||||
variant: v8
|
||||
os: linux
|
||||
11
ocis/docker/manifest.production-latest.tmpl
Normal file
11
ocis/docker/manifest.production-latest.tmpl
Normal file
@@ -0,0 +1,11 @@
|
||||
image: owncloud/ocis:latest
|
||||
manifests:
|
||||
- image: owncloud/ocis:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: linux
|
||||
- image: owncloud/ocis:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
|
||||
platform:
|
||||
architecture: arm64
|
||||
variant: v8
|
||||
os: linux
|
||||
@@ -1,4 +1,4 @@
|
||||
image: owncloud/ocis:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
|
||||
image: owncloud/ocis:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}master{{/if}}
|
||||
{{#if build.tags}}
|
||||
tags:
|
||||
{{#each build.tags}}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
image: owncloud/ocis-rolling:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
|
||||
image: owncloud/ocis-rolling:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}master{{/if}}
|
||||
{{#if build.tags}}
|
||||
tags:
|
||||
{{#each build.tags}}
|
||||
|
||||
Reference in New Issue
Block a user