From 4b884ab567f69be521fccf3d64b9a139677861ab Mon Sep 17 00:00:00 2001 From: Jordan Hayes Date: Wed, 9 Mar 2022 11:59:10 -0800 Subject: [PATCH] Fixed limit override, now appends --- deployment/docker/ci/bin/build.sh | 4 +++- services/tasks/runner.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deployment/docker/ci/bin/build.sh b/deployment/docker/ci/bin/build.sh index d9962ba6..aa0bb4d8 100755 --- a/deployment/docker/ci/bin/build.sh +++ b/deployment/docker/ci/bin/build.sh @@ -22,6 +22,8 @@ if [[ ! -f $SCRIPT_HOME/../semaphore.simg ]]; then else # Build RPM module load singularity || echo 'Not using modules' - cd ${SEMAPHORE_HOME} && singularity exec semaphore.simg task release + cd ${SEMAPHORE_HOME} && singularity exec $SCRIPT_HOME/../semaphore.simg task release + chmod a+rx ${SEMAPHORE_HOME}/bin + chmod a+r ${SEMAPHORE_HOME}/bin/* fi diff --git a/services/tasks/runner.go b/services/tasks/runner.go index da6e63b1..59373299 100644 --- a/services/tasks/runner.go +++ b/services/tasks/runner.go @@ -672,7 +672,7 @@ func (t *TaskRunner) getPlaybookArgs() (args []string, err error) { if t.task.Limit != "" { t.Log("--limit="+t.task.Limit) - args = append(taskExtraArgs, "--limit="+t.task.Limit) + taskExtraArgs = append(taskExtraArgs, "--limit="+t.task.Limit) } args = append(args, templateExtraArgs...)