Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No sentry file when using root variant #42

Closed
m21-cerutti opened this issue Aug 11, 2022 · 3 comments
Closed

No sentry file when using root variant #42

m21-cerutti opened this issue Aug 11, 2022 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@m21-cerutti
Copy link

Hello, i am using steamcmd inside a CI Pipeline and i use the root variant.
I needed to install gettext-base in order to use envsubst.
Now that the weird things, i can login but it doesn't create sffn* file that i want, in order to cache it, and to don't put anymore the Steam Guard code.
I don't find it either with find command, and in the steam user variant it create the file in /home/steam/Steam

@CM2Walki CM2Walki self-assigned this Aug 11, 2022
@CM2Walki CM2Walki added the question Further information is requested label Aug 11, 2022
@CM2Walki
Copy link
Owner

I have setup a CI pipeline example in this repo and I'm using it in production:

https://github.com/CM2Walki/steampipe

Can you check the readme and see if that's what you are looking for?

@m21-cerutti
Copy link
Author

No but i have tested something.
I have tried on a local docker container to investigate with steam user and it now works.
su steam -c "./steamcmd.sh +login USERNAME PASSWORD +quit" first and then set steamGuard code if fails.

If we don't use steam user (just ./steamcmd.sh without su), it will work without errors but it will not create sentry files.

I will now test if this tip work inside my CI pipeline and repport back if it works.

@m21-cerutti
Copy link
Author

Yes it was this problem. I leave the response here for other people.

# Test if need Steam Guard Code 
STEAM_EXIT=0
su -l steam -c "/home/steam/steamcmd/steamcmd.sh +login "$STEAM_BUILD_USERNAME" "$STEAM_BUILD_PASSWORD" +quit" || STEAM_EXIT=$?
echo "Test login with $STEAM_EXIT"

# Push build to Steam
if [ -z $STEAM_EXIT -o $STEAM_EXIT -eq 0 ]; then 
    su -l steam -c "/home/steam/steamcmd/steamcmd.sh +login '$STEAM_BUILD_USERNAME' '$STEAM_BUILD_PASSWORD' +run_app_build '$PWD/steam/app_build.vdf' +quit";
elif [ $STEAM_EXIT -eq 5 -a -z $STEAM_GUARD_CODE ]; then
    echo "Need STEAM_GUARD_CODE variable in CI.";
    exit 5
elif [ $STEAM_EXIT -eq 5 ]; then
    echo "Register STEAM_GUARD_CODE...";
    su -l steam -c "/home/steam/steamcmd/steamcmd.sh +set_steam_guard_code '$STEAM_GUARD_CODE' +login '$STEAM_BUILD_USERNAME' '$STEAM_BUILD_PASSWORD' +run_app_build '$PWD/steam/app_build.vdf' +quit";
else
   echo "Unknow error, STEAM_EXIT=$STEAM_EXIT"
    exit $STEAM_EXIT
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants