Skip to main content
After you deploy a release, promote it to an environment so the launcher can download it.

How environments work

Each environment can require a different release of the same repository, depending on where that release is in your pipeline. For example, with these environments:
  • qa requires gameclient.0.0.8
  • stage requires gameclient.0.0.7
  • production requires gameclient.0.0.6
A new release starts in qa, then moves up the chain as it passes testing until it reaches production.

Run the promote script

The promote.py script sets the required release for an environment or promotes releases between environments. The sample launcher skin is set up to download the gameclient repository from an environment named qa, so promote your release there. The promote_cdn.json file in \samples\config\ already sets these arguments:
  • --repository: the repository you’re promoting a release from (gameclient)
  • --latest: use the latest release deployed to this repository
  • --environment: the environment you’re promoting to (qa)
  1. In the same command prompt, run:
The line promoted RELEASEID to environment qa means the promotion worked. The script assigns your release to the qa environment in the aliases file on your CDN. Next, build your launcher.