Skip to content

Commit 0c98366

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

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.docker/linuxgsm/build-docker-images.sh renamed to .docker/linuxgsm/build-push-docker-images.sh

Lines changed: 3 additions & 1 deletion
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
@@ -10,6 +10,8 @@ while read line; do
1010
echo "Generating Dockerfile.${shortname} (${gamename})"
1111
echo "shortname ${shortname}"
1212
docker build -f Dockerfile . --build-arg SHORTNAME="${shortname}" --build-arg SERVERNAME="${servername}" --build-arg GAMENAME="${gamename}" --build-arg DISTRO="${distro}" -t "highcard/gsm:${shortname}"
13+
echo "Pushing highcard/gsm:${shortname}"
14+
docker push "highcard/gsm:${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)