Skip to content

Add BETA_PASSWORD support for private Steam beta branches#12

Open
indifferentketchup wants to merge 1 commit into
indifferentbroccoli:mainfrom
indifferentketchup:betapassword
Open

Add BETA_PASSWORD support for private Steam beta branches#12
indifferentketchup wants to merge 1 commit into
indifferentbroccoli:mainfrom
indifferentketchup:betapassword

Conversation

@indifferentketchup

Copy link
Copy Markdown

Add BETA_PASSWORD env var for private Steam beta branches.

scripts/functions.sh: build BETA_PASSWORD_ARG in install(), add varlist to envsubst, pipe through tr -s ' '.
scripts/install.scmd: add ${BETA_PASSWORD_ARG} to the app_update line.
.env.example: add BETA_PASSWORD= (empty default).
docker-compose.yml: add BETA_PASSWORD: ${BETA_PASSWORD} to environment.
README.md: document BETA_PASSWORD in the env-vars table.

Comment thread scripts/functions.sh Outdated
export BETA_PASSWORD_ARG
# shellcheck disable=SC2016 # envsubst's varlist must be single-quoted.
envsubst '${BETA} ${BETA_PASSWORD_ARG}' < /home/steam/server/install.scmd \
| tr -s ' ' \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason we can't simply add:
export BETA_PASSWORD="${BETA_PASSWORD}"?

Then continue our existing envsubst pattern.

Comment thread .env.example Outdated
PASSIVE_MOBS=false
NO_BUILD_COST=false
BETA=public
BETA_PASSWORD=

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should default to yesimadebackups

Comment thread Dockerfile Outdated
BEPINEXPACK_VERSION=5.4.2333 \
BETA=public
BETA=public \
BETA_PASSWORD=

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should default to yesimadebackups

Comment thread README.md Outdated
| NO_BUILD_COST | Disables building cost. | false |
| BEPINEX_ENABLED | Enables BepInEx modding. | false |
| BETA | Specifies a Steam beta branch to install (e.g., default_old). Set to public for stable branch. | public |
| BETA_PASSWORD | Password for private Steam beta branches (e.g., `yesimadebackups` for `public-test`). Leave blank for public branches. **Stored in plaintext in `.env` — treat the host accordingly.** | |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Include default value here

When BETA=public-test, install() appends -betapassword yesimadebackups
to the steamcmd app_update args. Hardcoding the (publicly-known) password
avoids a per-host env var.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants