GithubHelp home page GithubHelp logo

Comments (3)

CM2Walki avatar CM2Walki commented on September 27, 2024

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?

from steamcmd.

m21-cerutti avatar m21-cerutti commented on September 27, 2024

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.

from steamcmd.

m21-cerutti avatar m21-cerutti commented on September 27, 2024

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

from steamcmd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.