Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Cloud Build + Unity Package Manager

Discussion in 'Unity Build Automation' started by Tihonyuk, Feb 11, 2021.

  1. Tihonyuk

    Tihonyuk

    Joined:
    Dec 28, 2015
    Posts:
    8
    Hi,
    I've set up a secured npm server and it works fine locally. Credentials are stored in .upmconfig.toml which is in home location. This location cannot be changed due to the UnityPackageManager design.

    The approach which I can see is to write bash script which will take credentials from env var and put in .upmconfig and remove it after build.

    So I'm asking how I can put that credentials in cloud machine and be sure that they are secured. Or there is other way?
     
  2. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    459
    Unfortunately the Unity Package Manager does not currently support method other than upmconfig.toml so yes your bash script approach will be necessary. The Package Manager team are aware of the need to support alternative approaches but this is not currently prioritized for work.
     
  3. Tihonyuk

    Tihonyuk

    Joined:
    Dec 28, 2015
    Posts:
    8
    Great, thanks for the reply!