Skip to content

Commit

Permalink
Fix (ci): Add logging of CLIENT_APPID in build and fix logging ta…
Browse files Browse the repository at this point in the history
…g in `update` (#124)
  • Loading branch information
leojonathanoh authored Mar 9, 2023
1 parent aac0a55 commit 759d260
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN --mount=type=secret,id=STEAM_USERNAME \
echo "[BUILD] APPID: $APPID"; \
echo "[BUILD] MOD: $MOD"; \
echo "[BUILD] FIX_APPMANIFEST: $FIX_APPMANIFEST"; \
echo "[BUILD] CLIENT_APPID: $CLIENT_APPID"; \
echo "[BUILD] INSTALL_COUNT: $INSTALL_COUNT"; \
echo "[BUILD] STEAM_LOGIN: $STEAM_LOGIN"; \
if [ "$STEAM_LOGIN" = 'true' ]; then \
Expand Down
6 changes: 3 additions & 3 deletions update/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ RUN --mount=type=secret,id=STEAM_USERNAME \
echo "[UPDATE] INSTALL_COUNT: $INSTALL_COUNT"; \
echo "[UPDATE] STEAM_LOGIN: $STEAM_LOGIN"; \
if [ "$STEAM_LOGIN" = 'true' ]; then \
echo "[BUILD] STEAM_LOGIN is true. Will log in via user"; \
echo "[UPDATE] STEAM_LOGIN is true. Will log in via user"; \
steamcmdLoginArgs="$STEAM_USERNAME $STEAM_PASSWORD"; \
else \
echo "[BUILD] STEAM_LOGIN is null or not true. Will connect anonymously"; \
echo "[UPDATE] STEAM_LOGIN is null or not true. Will connect anonymously"; \
steamcmdLoginArgs='anonymous'; \
fi; \
if [ "$APPID" = 90 ] && [ -n "$MOD" ]; then \
Expand All @@ -34,7 +34,7 @@ RUN --mount=type=secret,id=STEAM_USERNAME \
echo "[UPDATE] Updating game"; \
i=0; \
while [ "$i" -le $(( $INSTALL_COUNT-1 )) ]; do \
echo "[BUILD] Install count: [$(( i+1 ))/$INSTALL_COUNT]"; \
echo "[UPDATE] Install count: [$(( i+1 ))/$INSTALL_COUNT]"; \
steamcmd.sh $steamcmdArgs; \
ls -al "$SERVER_DIR/steamapps"; \
i=$(( i+1 )); \
Expand Down

0 comments on commit 759d260

Please sign in to comment.