mirror of
https://github.com/containers/podman.git
synced 2025-06-19 00:06:43 +08:00
build: fix build DIR -t TAG
accept also the order "build DIR -t TAG" Closes: https://github.com/containers/libpod/issues/2636 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -52,7 +52,7 @@ func init() {
|
|||||||
buildCommand.SetHelpTemplate(HelpTemplate())
|
buildCommand.SetHelpTemplate(HelpTemplate())
|
||||||
buildCommand.SetUsageTemplate(UsageTemplate())
|
buildCommand.SetUsageTemplate(UsageTemplate())
|
||||||
flags := buildCommand.Flags()
|
flags := buildCommand.Flags()
|
||||||
flags.SetInterspersed(false)
|
flags.SetInterspersed(true)
|
||||||
|
|
||||||
budFlags := buildahcli.GetBudFlags(&budFlagsValues)
|
budFlags := buildahcli.GetBudFlags(&budFlagsValues)
|
||||||
flag := budFlags.Lookup("pull")
|
flag := budFlags.Lookup("pull")
|
||||||
|
@ -33,6 +33,13 @@ echo ########################################################
|
|||||||
podman images -q
|
podman images -q
|
||||||
|
|
||||||
|
|
||||||
|
echo ########################################################
|
||||||
|
echo test "build directory before other options create a tag"
|
||||||
|
echo ########################################################
|
||||||
|
TARGET=tagged-image
|
||||||
|
podman build $HOME/test/build/from-scratch --quiet=True -t $TARGET
|
||||||
|
podman images | grep tagged-image
|
||||||
|
|
||||||
echo ########################################################
|
echo ########################################################
|
||||||
echo test "build-preserve-subvolumes"
|
echo test "build-preserve-subvolumes"
|
||||||
echo ########################################################
|
echo ########################################################
|
||||||
|
Reference in New Issue
Block a user