Skip to content

Commit 94289d8

Browse files
authored
Use steamcmd/steamcmd docker image (#54)
* Update steam_deploy.sh * Update steam_deploy.sh * Use steamcmd/steamcmd docker image
1 parent 51329f0 commit 94289d8

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
if: needs.checkEnv.outputs.usernameExists == 'true'
2828

2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
3131
- run: |
3232
mkdir -p build/StandaloneWindows64
3333
touch build/StandaloneWindows64/steam-deploy-test.txt

Dockerfile

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
FROM cm2network/steamcmd
2-
3-
ENV STEAM_CMD="$STEAMCMDDIR/steamcmd.sh"
4-
5-
ADD *.sh $STEAMCMDDIR
6-
7-
USER root
8-
RUN chown -vfR root:root $STEAMCMDDIR
9-
10-
CMD "$STEAMCMDDIR/steam_deploy.sh"
1+
FROM steamcmd/steamcmd:latest
2+
COPY steam_deploy.sh /root/steam_deploy.sh
3+
ENTRYPOINT ["/root/steam_deploy.sh"]

steam_deploy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ echo "# Test login #"
124124
echo "#################################"
125125
echo ""
126126

127-
$STEAM_CMD +set_steam_guard_code "$steam_totp" +login "$steam_username" "$steam_password" +quit;
127+
steamcmd +set_steam_guard_code "$steam_totp" +login "$steam_username" "$steam_password" +quit;
128128

129129
ret=$?
130130
if [ $ret -eq 0 ]; then
@@ -150,7 +150,7 @@ echo "# Uploading build #"
150150
echo "#################################"
151151
echo ""
152152

153-
$STEAM_CMD +login "$steam_username" "$steam_password" +quit || (
153+
steamcmd +login "$steam_username" "$steam_password" +run_app_build "$manifest_path" +quit || (
154154
echo ""
155155
echo "#################################"
156156
echo "# Errors #"

0 commit comments

Comments
 (0)