@@ -188,6 +188,7 @@ func addServiceDefinitionFlags(flags *pflag.FlagSet) {
188
188
flags .String ("git-build-command" , "" , "Buid command" )
189
189
flags .String ("git-run-command" , "" , "Run command" )
190
190
flags .Bool ("git-no-deploy-on-push" , false , "Disable new deployments creation when code changes are pushed on the configured branch" )
191
+ flags .String ("git-workdir" , "" , "Path to the sub-directory containing the code to build and deploy" )
191
192
flags .String ("docker" , "" , "Docker image" )
192
193
flags .String ("docker-private-registry-secret" , "" , "Docker private registry secret" )
193
194
flags .String ("docker-command" , "" , "Docker command" )
@@ -377,6 +378,8 @@ func parseServiceDefinitionFlags(flags *pflag.FlagSet, definition *koyeb.Deploym
377
378
buildCommand , _ := flags .GetString ("git-build-command" )
378
379
runCommand , _ := flags .GetString ("git-run-command" )
379
380
noDeployOnPush , _ := flags .GetBool ("git-no-deploy-on-push" )
381
+ workdir , _ := flags .GetString ("git-workdir" )
382
+
380
383
createGitSource .SetRepository (git )
381
384
if branch != "" {
382
385
createGitSource .SetBranch (branch )
@@ -391,6 +394,8 @@ func parseServiceDefinitionFlags(flags *pflag.FlagSet, definition *koyeb.Deploym
391
394
}
392
395
393
396
createGitSource .SetNoDeployOnPush (noDeployOnPush )
397
+ createGitSource .SetWorkdir (workdir )
398
+
394
399
definition .SetGit (* createGitSource )
395
400
definition .Docker = nil
396
401
}
0 commit comments