Build an Environment

There are two ways to build an environment, either manually, or through a git trigger. The easiest way to test out your configuration is to build your environment manually.

Manual Environment Setup

To do so, go to the "Environments" tab, and click "Add Environment"

Then, select the template you wish to build your environment from, and optionally select the set of environment variables you want to use to build the environment in the "Environment Config" field. You can leave this field blank if you haven't yet set up environment variable configs.

Once the environment is built, you can monitor the build logs on the environment page, and the status of the environment will switch to "Active," and links to your services will show up.

Git Trigger Setup

You can also set up Gallery to build from a Git trigger. First, make sure all the repositories you wish to use as a trigger are added to the set of build commands on your template. Then, go to the "Triggers" tab, and add your trigger. The types of triggers are simple, you can either build new environments on opened Pull Requests (or Gitlab Merge Requests), on Pull Requests that are labelled with gallery-build or on pushes that are tagged. Gallery will re-run deployment functions when the associated Pull Request is updated (with new commits), but will not re-create the infrastructure, in order to save time.

Last updated