Skip to content

Commit

Permalink
fix: container and application update commands
Browse files Browse the repository at this point in the history
  • Loading branch information
evoxmusic committed Sep 5, 2023
1 parent 73d3801 commit 60d7c8c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion cmd/application_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ var applicationUpdateCmd = &cobra.Command{
}

req := qovery.ApplicationEditRequest{
Storage: storage,
Name: application.Name,
Description: application.Description.Get(),
GitRepository: &qovery.ApplicationGitRepositoryRequest{
Expand All @@ -70,14 +71,16 @@ var applicationUpdateCmd = &cobra.Command{
},
BuildMode: application.BuildMode,
DockerfilePath: application.DockerfilePath.Get(),
BuildpackLanguage: application.BuildpackLanguage,
Cpu: application.Cpu,
Memory: application.Memory,
MinRunningInstances: application.MinRunningInstances,
MaxRunningInstances: application.MaxRunningInstances,
Healthchecks: application.Healthchecks,
AutoPreview: application.AutoPreview,
Ports: application.Ports,
Storage: storage,
Arguments: application.Arguments,
Entrypoint: application.Entrypoint,
}

if applicationBranch != "" {
Expand Down
8 changes: 5 additions & 3 deletions cmd/container_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,21 @@ var containerUpdateCmd = &cobra.Command{
}

req := qovery.ContainerRequest{
Storage: storage,
Ports: ports,
Name: container.Name,
Description: container.Description,
RegistryId: container.Registry.Id,
ImageName: imageName,
Tag: tag,
RegistryId: container.Registry.Id,
Arguments: container.Arguments,
Entrypoint: container.Entrypoint,
Cpu: utils.Int32(container.Cpu),
Memory: utils.Int32(container.Memory),
MinRunningInstances: utils.Int32(container.MinRunningInstances),
MaxRunningInstances: utils.Int32(container.MaxRunningInstances),
Healthchecks: container.Healthchecks,
AutoPreview: utils.Bool(container.AutoPreview),
Ports: ports,
Storage: storage,
}

_, res, err := client.ContainerMainCallsApi.EditContainer(context.Background(), container.Id).ContainerRequest(req).Execute()
Expand Down
2 changes: 1 addition & 1 deletion pkg/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func GetCurrentVersion() string {
return "0.68.0" // ci-version-check
return "0.68.1" // ci-version-check
}

func GetLatestOnlineVersionUrl() (string, error) {
Expand Down

0 comments on commit 60d7c8c

Please sign in to comment.