Skip to content

Commit

Permalink
fix: GOTO flow in bat multiarch file
Browse files Browse the repository at this point in the history
Signed-off-by: shashank381 <satholashashank@gmail.com>
  • Loading branch information
shashank381 committed Apr 4, 2024
1 parent f2f4b45 commit 99e8b8b
Showing 1 changed file with 5 additions and 11 deletions.
Expand Up @@ -31,17 +31,11 @@ if not %basename% == "scripts" (
REM go to the parent directory so that all the relative paths will be correct
cd {{ .RelParentOfSourceDir }}


IF "%1"=="docker" (
shift
GOTO DOCKER_CONTAINER_RUNTIME
)
IF "%1"=="podman" (
SET CONTAINER_RUNTIME={{ .ContainerRuntime }}
IF "%1"!="" (
SET CONTAINER_RUNTIME=%1%
shift
GOTO PODMAN_CONTAINER_RUNTIME
)
SET CONTAINER_RUNTIME={{ .ContainerRuntime }}
GOTO DOCKER_CONTAINER_RUNTIME

IF "%3"=="" GOTO DEFAULT_PLATFORMS
SET PLATFORMS=%3%
Expand All @@ -56,12 +50,12 @@ GOTO REGISTRY
IF "%1"=="" GOTO DEFAULT_REGISTRY
SET REGISTRY_URL=%1
SET REGISTRY_NAMESPACE=%2
GOTO MAIN
GOTO DOCKER_CONTAINER_RUNTIME

:DEFAULT_REGISTRY
SET REGISTRY_URL={{ .RegistryURL }}
SET REGISTRY_NAMESPACE={{ .RegistryNamespace }}
GOTO MAIN
GOTO DOCKER_CONTAINER_RUNTIME

:DOCKER_CONTAINER_RUNTIME
IF NOT "%CONTAINER_RUNTIME%" == "docker" GOTO PODMAN_CONTAINER_RUNTIME
Expand Down

0 comments on commit 99e8b8b

Please sign in to comment.