-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-and-release.sh
executable file
·25 lines (19 loc) · 1.29 KB
/
build-and-release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
variants=(classic tbc wotlk)
images=(extractors realmd)
for variant in "${variants[@]}"; do
for image in "${images[@]}"; do
docker build --no-cache -t "ghcr.io/jrtashjian/cmangos-$image-$variant:latest" ./$image --build-arg CMANGOS_CORE=$variant
docker push "ghcr.io/jrtashjian/cmangos-$image-$variant:latest"
done
done
for variant in "${variants[@]}"; do
docker build --no-cache -t "ghcr.io/jrtashjian/cmangos-mangosd-$variant:latest" ./mangosd --build-arg CMANGOS_CORE=$variant
docker push "ghcr.io/jrtashjian/cmangos-mangosd-$variant:latest"
docker build --no-cache -t "ghcr.io/jrtashjian/cmangos-mangosd-$variant:with-playerbot" ./mangosd --build-arg CMANGOS_CORE=$variant --build-arg BUILD_PLAYERBOT=ON
docker push "ghcr.io/jrtashjian/cmangos-mangosd-$variant:with-playerbot"
docker build --no-cache -t "ghcr.io/jrtashjian/cmangos-mangosd-$variant:with-ahbot" ./mangosd --build-arg CMANGOS_CORE=$variant --build-arg BUILD_AHBOT=ON
docker push "ghcr.io/jrtashjian/cmangos-mangosd-$variant:with-ahbot"
docker build --no-cache -t "ghcr.io/jrtashjian/cmangos-mangosd-$variant:with-playerbot-ahbot" ./mangosd --build-arg CMANGOS_CORE=$variant --build-arg BUILD_PLAYERBOT=ON --build-arg BUILD_AHBOT=ON
docker push "ghcr.io/jrtashjian/cmangos-mangosd-$variant:with-playerbot-ahbot"
done