mirror of
https://github.com/openshift/source-to-image.git
synced 2026-02-05 12:44:54 +01:00
@@ -238,6 +238,10 @@ type Config struct {
|
||||
// must have non-zero length. The labels defined here override generated labels in case
|
||||
// they have the same name.
|
||||
Labels map[string]string
|
||||
|
||||
// SourceInfo provides the info about the source to be built rather than relying
|
||||
// on the Downloader to retrieve it.
|
||||
SourceInfo *SourceInfo
|
||||
}
|
||||
|
||||
// EnvironmentSpec specifies a single environment variable.
|
||||
|
||||
@@ -348,6 +348,9 @@ func (builder *STI) Prepare(config *api.Config) error {
|
||||
)
|
||||
return err
|
||||
}
|
||||
if config.SourceInfo != nil {
|
||||
builder.sourceInfo = config.SourceInfo
|
||||
}
|
||||
}
|
||||
|
||||
// get the scripts
|
||||
|
||||
Reference in New Issue
Block a user