docker-windows/prepare_image.sh
2025-04-01 11:00:21 +03:00

19 lines
457 B
Bash
Executable file

#!/usr/bin/env bash
set -Eeuox pipefail
source env.sh
echo "start to build and install windows"
docker compose up windows-build -d --wait --build
echo "windows installed, now stop container"
docker stop windows-build
echo "commit all the changes"
docker commit windows-build "$IMAGE_NAME:$IMAGE_VERSION"
docker images
docker push "$IMAGE_NAME:$IMAGE_VERSION"
echo "start container with windows installed"
docker compose up windows-installed -d --wait