Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions internal/shop/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,15 @@ type ConfigDeployment struct {
Id string `yaml:"id" jsonschema:"required"`
Script string `yaml:"script" jsonschema:"required"`
} `yaml:"one-time-tasks"`

// Staging mode configuration for the deployment
Staging *ConfigDeploymentStaging `yaml:"staging,omitempty"`
}

// ConfigDeploymentStaging defines staging mode configuration.
type ConfigDeploymentStaging struct {
// When enabled, staging setup commands will be executed during installation and upgrade
Enabled bool `yaml:"enabled,omitempty"`
}

type ConfigDeploymentOverrides map[string]struct {
Expand Down
17 changes: 16 additions & 1 deletion shopware-project-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
},
"asset_caching": {
"type": "boolean",
"description": "When enabled, built assets are cached locally and restored on subsequent builds when sources haven't changed"
"description": "When enabled, built assets are cached and restored on subsequent builds when sources haven't changed"
},
"hooks": {
"$ref": "#/$defs/ConfigBuildHooks",
Expand Down Expand Up @@ -331,6 +331,10 @@
]
},
"type": "array"
},
"staging": {
"$ref": "#/$defs/ConfigDeploymentStaging",
"description": "Staging mode configuration for the deployment"
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -360,6 +364,17 @@
"type": "object",
"title": "Extension overrides"
},
"ConfigDeploymentStaging": {
"properties": {
"enabled": {
"type": "boolean",
"description": "When enabled, staging setup commands will be executed during installation and upgrade"
}
},
"additionalProperties": false,
"type": "object",
"description": "ConfigDeploymentStaging defines staging mode configuration."
},
"ConfigDump": {
"properties": {
"rewrite": {
Expand Down