Skip to content

Commit

Permalink
move release to cobra
Browse files Browse the repository at this point in the history
Signed-off-by: James Strong <[email protected]>
  • Loading branch information
James Strong committed Jun 14, 2023
1 parent b3cf60d commit ff3d6bd
Show file tree
Hide file tree
Showing 4 changed files with 576 additions and 52 deletions.
5 changes: 3 additions & 2 deletions ingressctl/cmd/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func init() {
dockerBuildCmd.Flags().StringVar(&dco.BuildArgs.TargetArch, "targetarch", "", "target arch to build")
dockerBuildCmd.Flags().StringVar(&dco.BuildArgs.CommitSHA, "commitsha", "", "build arg commit sha to add to build")
dockerBuildCmd.Flags().StringVar(&dco.BuildArgs.BuildId, "build-id", "", "build id to add to container metadata")
dockerBuildCmd.Flags().StringVar(&dco.DockerFile, "dockerfile", "", "dockerfile of image to build")
dockerBuildCmd.Flags().StringVar(&dco.Dockerfile, "dockerfile", "Dockerfile", "dockerfile of image to build")
dockerBuildCmd.Flags().StringVar(&dco.Image.Name, "name", "", "container image name registry/name:tag@digest")
dockerBuildCmd.Flags().StringVar(&dco.Image.Registry, "registry", Registry, "Registry to tag image and push container registry/name:tag@digest")
dockerBuildCmd.Flags().StringVar(&dco.Image.Tag, "tag", "", "container tag registry/name:tag@digest")
Expand Down Expand Up @@ -81,7 +81,7 @@ type dockerBuildOpts struct {
PlatformFlag string
Platform []string
BuildArgs BuildArgs
DockerFile string
Dockerfile string
Image Image
Path string
}
Expand Down Expand Up @@ -136,6 +136,7 @@ func dockerBuild() error {
"--build-arg", "TARGETARCH="+dco.BuildArgs.TargetArch,
"--build-arg", "COMMIT_SHA="+dco.BuildArgs.CommitSHA,
"--build-arg", "BUILD_ID="+dco.BuildArgs.BuildId,
"-f", dco.Path+dco.Dockerfile,
dco.Path).Run()

return nil
Expand Down
Loading

0 comments on commit ff3d6bd

Please sign in to comment.