You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(crane): allow setting the repository to push by digest (#1323)
* feat(crane): allow setting the repository to push by digest
Signed-off-by: Markus Lippert <[email protected]>
* apply suggestions
Signed-off-by: Markus Lippert <[email protected]>
* Update cmd/crane/cmd/mutate.go
Co-authored-by: Jason Hall <[email protected]>
* update docs
Signed-off-by: Markus Lippert <[email protected]>
Co-authored-by: Jason Hall <[email protected]>
mutateCmd.Flags().StringToStringVarP(&envVars, "env", "e", nil, "New envvar to add")
154
161
mutateCmd.Flags().StringSliceVar(&entrypoint, "entrypoint", nil, "New entrypoint to set")
155
162
mutateCmd.Flags().StringSliceVar(&cmd, "cmd", nil, "New cmd to set")
156
-
mutateCmd.Flags().StringVarP(&newRef, "tag", "t", "", "New tag to apply to mutated image. If not provided, push by digest to the original image repository.")
163
+
mutateCmd.Flags().StringVar(&newRepo, "repo", "", "Repository to push the mutated image to. If provided, push by digest to this repository.")
164
+
mutateCmd.Flags().StringVarP(&newRef, "tag", "t", "", "New tag reference to apply to mutated image. If not provided, push by digest to the original image repository.")
157
165
mutateCmd.Flags().StringVarP(&outFile, "output", "o", "", "Path to new tarball of resulting image")
158
166
mutateCmd.Flags().StringSliceVar(&newLayers, "append", []string{}, "Path to tarball to append to image")
159
167
mutateCmd.Flags().StringVarP(&user, "user", "u", "", "New user to set")
0 commit comments