Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
feat(images-dependencies): rename imports to dependencies
Rename "imports*" stapel build stages to "dependencies*", do not change stages digests.
- Loading branch information
Showing
with
149 additions
and 133 deletions.
- +16 −16 docs/_data/stages.yml
- +1 −1 pkg/build/build_phase.go
- +4 −4 pkg/build/conveyor.go
- +33 −17 pkg/build/stage/base.go
- +7 −7 pkg/build/stage/{imports.go → dependencies.go}
- +22 −0 pkg/build/stage/dependencies_after_install.go
- +22 −0 pkg/build/stage/dependencies_after_setup.go
- +22 −0 pkg/build/stage/dependencies_before_install.go
- +22 −0 pkg/build/stage/dependencies_before_setup.go
- +0 −22 pkg/build/stage/imports_after_install.go
- +0 −22 pkg/build/stage/imports_after_setup.go
- +0 −22 pkg/build/stage/imports_before_install.go
- +0 −22 pkg/build/stage/imports_before_setup.go
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,22 @@ | ||
package stage | ||
|
||
import "github.com/werf/werf/pkg/config" | ||
|
||
func GenerateDependenciesAfterInstallStage(imageBaseConfig *config.StapelImageBase, baseStageOptions *NewBaseStageOptions) *DependenciesAfterInstallStage { | ||
imports := getImports(imageBaseConfig, &getImportsOptions{After: Install}) | ||
if len(imports) != 0 { | ||
return newDependenciesAfterInstallStage(imports, baseStageOptions) | ||
} | ||
|
||
return nil | ||
} | ||
|
||
func newDependenciesAfterInstallStage(imports []*config.Import, baseStageOptions *NewBaseStageOptions) *DependenciesAfterInstallStage { | ||
s := &DependenciesAfterInstallStage{} | ||
s.DependenciesStage = newDependenciesStage(imports, DependenciesAfterInstall, baseStageOptions) | ||
return s | ||
} | ||
|
||
type DependenciesAfterInstallStage struct { | ||
*DependenciesStage | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,22 @@ | ||
package stage | ||
|
||
import "github.com/werf/werf/pkg/config" | ||
|
||
func GenerateDependenciesAfterSetupStage(imageBaseConfig *config.StapelImageBase, baseStageOptions *NewBaseStageOptions) *DependenciesAfterSetupStage { | ||
imports := getImports(imageBaseConfig, &getImportsOptions{After: Setup}) | ||
if len(imports) != 0 { | ||
return newDependenciesAfterSetupStage(imports, baseStageOptions) | ||
} | ||
|
||
return nil | ||
} | ||
|
||
func newDependenciesAfterSetupStage(imports []*config.Import, baseStageOptions *NewBaseStageOptions) *DependenciesAfterSetupStage { | ||
s := &DependenciesAfterSetupStage{} | ||
s.DependenciesStage = newDependenciesStage(imports, DependenciesAfterSetup, baseStageOptions) | ||
return s | ||
} | ||
|
||
type DependenciesAfterSetupStage struct { | ||
*DependenciesStage | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,22 @@ | ||
package stage | ||
|
||
import "github.com/werf/werf/pkg/config" | ||
|
||
func GenerateDependenciesBeforeInstallStage(imageBaseConfig *config.StapelImageBase, baseStageOptions *NewBaseStageOptions) *DependenciesBeforeInstallStage { | ||
imports := getImports(imageBaseConfig, &getImportsOptions{Before: Install}) | ||
if len(imports) != 0 { | ||
return newDependenciesBeforeInstallStage(imports, baseStageOptions) | ||
} | ||
|
||
return nil | ||
} | ||
|
||
func newDependenciesBeforeInstallStage(imports []*config.Import, baseStageOptions *NewBaseStageOptions) *DependenciesBeforeInstallStage { | ||
s := &DependenciesBeforeInstallStage{} | ||
s.DependenciesStage = newDependenciesStage(imports, DependenciesBeforeInstall, baseStageOptions) | ||
return s | ||
} | ||
|
||
type DependenciesBeforeInstallStage struct { | ||
*DependenciesStage | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,22 @@ | ||
package stage | ||
|
||
import "github.com/werf/werf/pkg/config" | ||
|
||
func GenerateDependenciesBeforeSetupStage(imageBaseConfig *config.StapelImageBase, baseStageOptions *NewBaseStageOptions) *DependenciesBeforeSetupStage { | ||
imports := getImports(imageBaseConfig, &getImportsOptions{Before: Setup}) | ||
if len(imports) != 0 { | ||
return newDependenciesBeforeSetupStage(imports, baseStageOptions) | ||
} | ||
|
||
return nil | ||
} | ||
|
||
func newDependenciesBeforeSetupStage(imports []*config.Import, baseStageOptions *NewBaseStageOptions) *DependenciesBeforeSetupStage { | ||
s := &DependenciesBeforeSetupStage{} | ||
s.DependenciesStage = newDependenciesStage(imports, DependenciesBeforeSetup, baseStageOptions) | ||
return s | ||
} | ||
|
||
type DependenciesBeforeSetupStage struct { | ||
*DependenciesStage | ||
} |
Oops, something went wrong.