Skip to content

Commit 53c0e98

Browse files
committed
chore: add push option to gsm build [skip ci]
1 parent 71a3f3c commit 53c0e98

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
2+
set -e
33
curl -O "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/data/serverlist.csv"
44

55
while 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}"
1315
done < <(tail -n +2 serverlist.csv)
1416

1517
rm serverlist.csv

.github/workflows/build-lgsm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
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

0 commit comments

Comments
 (0)