1
0
mirror of https://gitea.tendokyu.moe/Dniel97/segatools.git synced 2024-12-18 06:45:53 +01:00
segatools-dniel97/docker-build.bat

35 lines
559 B
Batchfile
Raw Normal View History

@echo off
setlocal enabledelayedexpansion
:: Static Environment Variables
set IMAGE_NAME=djhackers/segatools-build:latest
set CONTAINER_NAME=segatools-build
:: Main Execution
docker build . -t %IMAGE_NAME%
if ERRORLEVEL 1 (
goto failure
)
2023-02-13 02:45:13 +01:00
docker run -it --rm -v %~dp0:/segatools --name %CONTAINER_NAME% %IMAGE_NAME%
if ERRORLEVEL 1 (
goto failure
)
2023-04-23 16:13:51 +02:00
:: docker image rm -f %IMAGE_NAME%
goto success
:failure
echo segatools Docker build FAILED!
goto finish
:success
echo segatools Docker build completed successfully.
goto finish
:finish
pause