File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
2-
2+ set -e
33curl -O " https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/data/serverlist.csv"
44
55while read line; do
@@ -9,7 +9,9 @@ while read line; do
99 export distro=$( echo " $line " | awk -F, ' { print $4 }' )
1010 echo " Generating Dockerfile.${shortname} (${gamename} )"
1111 echo " shortname ${shortname} "
12- docker build -f Dockerfile . --build-arg SHORTNAME=" ${shortname} " --build-arg SERVERNAME=" ${servername} " --build-arg GAMENAME=" ${gamename} " --build-arg DISTRO=" ${distro} " -t " highcard/gsm:${shortname} "
12+ docker build -f Dockerfile . --build-arg SHORTNAME=" ${shortname} " --build-arg SERVERNAME=" ${servername} " --build-arg GAMENAME=" ${gamename} " --build-arg DISTRO=" ${distro} " -t " highcard/druidd-lgsm:${shortname} "
13+ echo " Pushing highcard/druidd-lgsm:${shortname} "
14+ docker push " highcard/druidd-lgsm:${shortname} "
1315done < <( tail -n +2 serverlist.csv)
1416
1517rm serverlist.csv
Original file line number Diff line number Diff line change 1414 username : ${{ secrets.SCROLL_REGISTRY_USER }}
1515 password : ${{ secrets.SCROLL_REGISTRY_PASSWORD }}
1616 - name : Build all LGSM games
17- run : cd .docker/linuxgsm/ && bash build-docker-images.sh
17+ run : cd .docker/linuxgsm/ && bash build-push- docker-images.sh
You can’t perform that action at this time.
0 commit comments