Coder Social home page Coder Social logo

Comments (4)

alexiscatnip avatar alexiscatnip commented on August 22, 2024 1

@webbertakken 👍 thanks so much! I am presently not familiar with building docker (only know how to docker run).

I will investigate one of these days... For now I just quickly forked the repo and hard-coded my 3 values to pass in; something like -env MY_SECRET_FROM_GITHUB_SECRETS. It more or less works... :'')

from unity-test-runner.

alexiscatnip avatar alexiscatnip commented on August 22, 2024

Looking at
https://github.com/game-ci/unity-test-runner/blob/3d5d2f58348b293ae1fe6b7cca24deccaf505b2f/src/model/docker.ts ,
I think I can modify the command line string, by adding in my env variables (hard-code...).

But that might be thinking too much inside the box?

from unity-test-runner.

alexiscatnip avatar alexiscatnip commented on August 22, 2024

By using the shell of the github runner VM, I am able to read the envs.
https://github.com/alexiscatnip/github_action_experiment/tree/main

My present suspicion is 'the envs of the github VM are not inherited by the docker container, and instead must be defined in the CLI arguments as a flag like --env MYENVVAR"

from unity-test-runner.

webbertakken avatar webbertakken commented on August 22, 2024

You are correct in your observation that we're not passing non-specific env variables into the container.

You can use customParameters to pass any parameters into the image and read them from your code.

Here's an example of how to read the variables that you've passed from builder. Effectively the same can be done in your test setup.

Let me know if this sufficiently answers your question.

from unity-test-runner.

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.