Skip to content

Commit

Permalink
chore(server): Added default values to the configuration of the CityG…
Browse files Browse the repository at this point in the history
…ML service (#340)
  • Loading branch information
orisano authored Oct 11, 2024
1 parent ada407a commit f7e2328
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-worker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build-server
name: build-worker
on:
workflow_call:
jobs:
Expand Down
18 changes: 15 additions & 3 deletions server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,23 @@ func (c *Config) plateauCMS() plateaucms.Config {
}

func (c *Config) CityGML() citygml.Config {
workRegion := c.CityGML_WorkerRegion
if workRegion == "" {
workRegion = c.GOOGLE_CLOUD_REGION
}
workProject := c.CityGML_WorkerProject
if workProject == "" {
workProject = c.GOOGLE_CLOUD_PROJECT
}
citygmlPackerImage := c.CityGML_CityGMLPackerImage
if citygmlPackerImage == "" {
citygmlPackerImage = "ghcr.io/eukarya-inc/plateau-view-3.0/plateauview-api-worker:latest"
}
return citygml.Config{
Domain: c.CityGML_Domain,
Bucket: c.CityGML_Bucket,
CityGMLPackerImage: c.CityGML_CityGMLPackerImage,
WorkerRegion: c.CityGML_WorkerRegion,
WorkerProject: c.CityGML_WorkerProject,
CityGMLPackerImage: citygmlPackerImage,
WorkerRegion: workRegion,
WorkerProject: workProject,
}
}

0 comments on commit f7e2328

Please sign in to comment.