mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
Add CI builds
This commit is contained in:
parent
505ab90bc0
commit
5e4aede455
11 changed files with 360 additions and 251 deletions
19
prepare_image.sh
Executable file
19
prepare_image.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
set -Eeuo 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue