Merge pull request #1074 from TomChv/feat/pipeline-platform-config

Handle running architecture configuration
This commit is contained in:
Sam Alba
2021-11-01 16:14:20 -07:00
committed by GitHub
14 changed files with 162 additions and 29 deletions

View File

@@ -235,7 +235,7 @@ func (w *Project) Save(ctx context.Context, st *State) error {
return nil
}
func (w *Project) Create(ctx context.Context, name string, plan Plan) (*State, error) {
func (w *Project) Create(ctx context.Context, name string, plan Plan, arch string) (*State, error) {
if _, err := w.Get(ctx, name); err == nil {
return nil, ErrExist
}
@@ -263,7 +263,8 @@ func (w *Project) Create(ctx context.Context, name string, plan Plan) (*State, e
Plan: Plan{
Package: pkg,
},
Name: name,
Name: name,
Architecture: arch,
}
data, err := yaml.Marshal(st)