Skip to content

Commit

Permalink
Merge pull request #11862 from owncloud/enableVips
Browse files Browse the repository at this point in the history
[full-ci]enable vips for thumbnails
  • Loading branch information
kulmann authored Nov 8, 2024
2 parents cf63e06 + e466932 commit 80799b5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ def cacheOcisPipeline(ctx):
rebuildBuildArtifactCache(ctx, "ocis", "ocis")
else:
steps = checkForExistingOcisCache(ctx) + \
buildOcis() + \
buildOcis(enableVips = True) + \
cacheOcis()
return [{
"kind": "pipeline",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -1101,7 +1105,7 @@ def buildOcis():
"commands": [
"source .drone.env",
"cd repo_ocis/ocis",
"retry -t 3 'make build'",
build_command,
"cp bin/ocis %s" % dir["web"],
],
"volumes": go_step_volumes,
Expand Down

0 comments on commit 80799b5

Please sign in to comment.