Use splitLimit to account for multiple - in name

This commit is contained in:
Don
2019-01-25 12:07:13 -08:00
parent a0a0d0a7f9
commit 0eae3b6d51
+1 -1
View File
@@ -50,7 +50,7 @@ local golang_image(os, version) =
local file_suffix = std.strReplace(tag, '-', '.');
local volumes = if is_windows then [{ name: windows_pipe_volume, path: windows_pipe }] else [];
local golang = golang_image(os, version);
local plugin_repo = 'plugins/' + std.split(name, '-')[1];
local plugin_repo = 'plugins/' + std.splitLimit(name, '-', 1)[1];
local extension = if is_windows then '.exe' else '';
{
kind: 'pipeline',