From 8cd497ef5f66173b4e6b84c7f1cc7e2acc073aa2 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Wed, 6 Nov 2024 12:25:12 +0100 Subject: [PATCH 1/2] enable vips for thumbnails --- .drone.star | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.star b/.drone.star index 55edcb96448..b3b5ed668bd 100644 --- a/.drone.star +++ b/.drone.star @@ -1101,7 +1101,7 @@ def buildOcis(): "commands": [ "source .drone.env", "cd repo_ocis/ocis", - "retry -t 3 'make build'", + "retry -t 3 'make build ENABLE_VIPS=1'", "cp bin/ocis %s" % dir["web"], ], "volumes": go_step_volumes, From e46693225d1216041ad7bd27b5a1ceaee0d4ea11 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Thu, 7 Nov 2024 16:10:27 +0100 Subject: [PATCH 2/2] build ocis using vips --- .drone.star | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.drone.star b/.drone.star index b3b5ed668bd..dc9c983aeb1 100644 --- a/.drone.star +++ b/.drone.star @@ -1031,7 +1031,7 @@ def cacheOcisPipeline(ctx): rebuildBuildArtifactCache(ctx, "ocis", "ocis") else: steps = checkForExistingOcisCache(ctx) + \ - buildOcis() + \ + buildOcis(enableVips = True) + \ cacheOcis() return [{ "kind": "pipeline", @@ -1068,8 +1068,12 @@ def restoreOcisCache(): ], }] -def buildOcis(): +def buildOcis(enableVips = False): ocis_repo_url = "https://github.com/owncloud/ocis.git" + if enableVips: + build_command = "retry -t 3 'make build ENABLE_VIPS=1'" + else: + build_command = "retry -t 3 'make build'" return [ { "name": "clone-ocis", @@ -1101,7 +1105,7 @@ def buildOcis(): "commands": [ "source .drone.env", "cd repo_ocis/ocis", - "retry -t 3 'make build ENABLE_VIPS=1'", + build_command, "cp bin/ocis %s" % dir["web"], ], "volumes": go_step_volumes,