Create a build with a container image
Refer to Container builds to learn more.
In the Unity Cloud Dashboard, open Multiplay Hosting.
Select Builds > Create build.
Fill in the build details:
- Give the new build a name.
- Select the operating system.
- As the Upload method, select Container image.
Select Next to continue to the Service account step.
To add your container image to the Multiplay Hosting registry, you’ll need a service account. Follow the below instructions:
- Go to the Service accounts page and create a new service account. If you already have a service account, continue to the next step
- In the Keys section of your service account, create a new key and store both the Key ID and the Secret key somewhere safe.
- Within the Project roles section of your service account, add the Multiplay Hosting Registry Editor role.
Select Next to continue to the Add to registry step.
Complete the following instructions to add your container image to the Multiplay Hosting registry. Note that the Create build window provides you with the required IDs.
- Give the new build a version name or leave empty to give this update a version name automatically. The automatic version name is the creation time of the build.
- Log into the Multiplay Hosting container registry with your service account. Use your Key ID for the username and your Secret Key for the password:
docker login registry.multiplay.com -u <KeyID> -p <SecretKey>
- Tag your container image with the following line:
docker tag <ImageName>:<ImageTag> registry.multiplay.com/<project_id>/<environment_id>/<build_id>:<version>
- Push your container image to the Multiplay Hosting registry:
docker push registry.multiplay.com/<project_id>/<environment_id>/<build_id>:<version>
Select Next to continue to the Select image step.
Choose the method by which you want to select your image.
- Set Container image to your image.
- Select the rollout mode. You can perform a progressive rollout or a forced rollout.
You now have a new build. Before you can use the build, you need to create (and link) a build configuration and a fleet. Refer to Create a build configuration.