From f76ae7aeaf6c76541ecd86483c409d98757524f6 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Tue, 31 Oct 2023 12:39:29 -0400 Subject: [PATCH] fix(config): add jobs default config Fixes: e2e79feb09b7 (feat: job config (#402)) --- pkg/config/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/config/config.go b/pkg/config/config.go index aed4a9d1f..4b1ad3c7f 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -183,6 +183,7 @@ func (c *Config) Environ() []string { fmt.Sprintf("SOFT_SERVE_DB_DATA_SOURCE=%s", c.DB.DataSource), fmt.Sprintf("SOFT_SERVE_LFS_ENABLED=%t", c.LFS.Enabled), fmt.Sprintf("SOFT_SERVE_LFS_SSH_ENABLED=%t", c.LFS.SSHEnabled), + fmt.Sprintf("SOFT_SERVE_JOBS_MIRROR_PULL=%s", c.Jobs.MirrorPull), }...) return envs @@ -341,6 +342,9 @@ func DefaultConfig() *Config { Enabled: true, SSHEnabled: false, }, + Jobs: JobsConfig{ + MirrorPull: "@every 10m", + }, } }