Skip to content

Commit f74c2de

Browse files
committed
Fix cb-docker-tool --from-latestbuilds for SGW
Change-Id: I4aef33e6b9830de9360c00ea2314d1d79d9e1741 Reviewed-on: https://review.couchbase.org/c/build-tools/+/193896 Tested-by: Chris Hillery <[email protected]> Reviewed-by: Blair Watt <[email protected]>
1 parent 3aac658 commit f74c2de

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

dockerhub/cb-docker-tool

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,16 @@ class DockerTool:
216216
return
217217
version, bldnum = self.version.split('-')
218218
if self.product == "sync-gateway":
219+
sgw_filename = (
220+
f"couchbase-{self.product}-{self.edition}_{version}"
221+
f"-{bldnum}_@@ARCH@@.deb"
222+
)
219223
self.add_templateoverrides([
220-
"SGW_PACKAGE=http://latestbuilds.service.couchbase.com/builds/"
224+
"SYNC_GATEWAY_PACKAGE_URL="
225+
"http://latestbuilds.service.couchbase.com/builds/"
221226
f"latestbuilds/{self.product.replace('-','_')}/{version}/"
222-
f"{bldnum}/couchbase-{self.product}-{self.edition}_{version}"
223-
f"-{bldnum}_@@ARCH@@.deb"
227+
f"{bldnum}/{sgw_filename}",
228+
f"SYNC_GATEWAY_PACKAGE_FILENAME={sgw_filename}"
224229
])
225230
else:
226231
self.add_templateoverrides([

0 commit comments

Comments
 (0)