deploy.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. package v2
  2. import (
  3. "context"
  4. "fmt"
  5. api "github.com/porter-dev/porter/api/client"
  6. "github.com/porter-dev/porter/cli/cmd/config"
  7. )
  8. // UpdateFull implements the functionality of the `porter build` command for validate apply v2 projects
  9. func UpdateFull(ctx context.Context, cliConf config.CLIConfig, client api.Client, appName string) error {
  10. // use empty string for porterYamlPath,legacy projects wont't have a v2 porter.yaml
  11. var porterYamlPath string
  12. err := Apply(ctx, cliConf, client, porterYamlPath, appName)
  13. if err != nil {
  14. return err
  15. }
  16. return nil
  17. }
  18. // UpdateBuild implements the functionality of the `porter apply` command for validate apply v2 projects
  19. func UpdateBuild(ctx context.Context) error {
  20. fmt.Println("This command is not supported for your project. Contact support@porter.run for more information.")
  21. return nil
  22. }
  23. // UpdateUpgrade implements the functionality of the `porter config` command for validate apply v2 projects
  24. func UpdateUpgrade(ctx context.Context) error {
  25. fmt.Println("This command is not supported for your project. Contact support@porter.run for more information.")
  26. return nil
  27. }