Skip to content

Commit

Permalink
fix(config): add jobs default config
Browse files Browse the repository at this point in the history
Fixes: e2e79fe (feat: job config (#402))
  • Loading branch information
aymanbagabas committed Oct 31, 2023
1 parent f915f4d commit f76ae7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -341,6 +342,9 @@ func DefaultConfig() *Config {
Enabled: true,
SSHEnabled: false,
},
Jobs: JobsConfig{
MirrorPull: "@every 10m",
},
}
}

Expand Down

0 comments on commit f76ae7a

Please sign in to comment.