Building New Previews

When you’re building Previews after you’ve set a Base Preview, those Preview builds are child builds of the Base Preview. They use the Base Preview’s build snapshot for things like setting up Services, including pulling Docker images, and pulling in any assets that are imported during the init or update phase of the Base Preview build.

When you’re working with Previews that are child Previews of a Base Preview, Build and Rebuild start from the build phase, bypassing the init and refresh phases of a build. This includes:

For more info on build phases, see: the build process: explained.

After you’ve set a Base Preview, you do have one option to build new Previews that do not use the Base Preview: manually build a Preview from scratch. A Preview built this way is not a child Preview, and behaves like a typical Preview when Building or Rebuilding.

Build a Preview with no Base Preview

To manually build a Preview with no Base Preview:

  1. Go to username -> My Projects at the upper-right of the Tugboat screen.
  2. Select the project where you want to build a Preview.
  3. Click into the repo where you want to build a Preview.
  4. Go to the Available to Build section of the Repository Dashboard.
  5. Click into the drop-down next to the Build Preview button for the Preview you’d like to build from scratch.
  6. Select the Build with no base preview option.
Info

If you build with no base preview from a pull request or tag, you will not see the following options in the base preview settings for your pull request preview. These options are only available for branch-based previews:

    [ ] Repository Base Preview
        Use this Preview as a Base Preview for all new Previews built for this Repository.
    [ ] Branch Base Preview
        Only use this Preview as a Base Preview for new pull request Previews that merge into the main branch.
Visual Walkthrough

Go to username -> My Projects at the upper-right of the Tugboat screen.

Go to username -> My Projects Go to username -> My Projects

Select the project where you want to build a Preview.

Select the project Select the project

Click into the repo where you want to build a Preview.

Click into Tugboat repository Click into Tugboat repository

Go to the Available to Build section of the Repository Dashboard.

Scroll to Available to Build Scroll to Available to Build

Click into the drop-down next to the Build Preview button for the Preview you’d like to build from scratch.

Go to the Build Preview drop-down menu Go to the Build Preview drop-down menu

Select the Build with no base preview option.

Select Build with no base preview Select Build with no base preview

Build a Preview from a specific Base Preview

If you want to use a Preview as a Base Preview for a specific Preview build, but don’t want to set it as a Repository or Branch Base Preview, you can manually build a Preview from a specific Base Preview.

To build a Preview from a specific Base Preview:

  1. Go to username -> My Projects at the upper-right of the Tugboat screen.
  2. Select the project where you want to build a Preview from a specific Base Preview.
  3. Click into the repo where you want to build a Preview from a specific Base Preview.
  4. Go to the Available to Build section of the Repository Dashboard.
  5. Click into the drop-down next to the Build Preview button for the Preview you’d like to build from a specific Base Preview.
  6. Select the Select a base preview option.
  7. Click the checkbox(es) next to any Base Previews you want to use as the basis for your new Preview build(s).
  8. Press the OK button.
Visual Walkthrough

Go to username -> My Projects at the upper-right of the Tugboat screen.

Go to username -> My Projects Go to username -> My Projects

Select the project where you want to build a Preview from a specific Base Preview.

Select the project Select the project

Click into the repo where you want to build a Preview from a specific Base Preview.

Select the Tugboat repository Select the Tugboat repository

Go to the Available to Build section of the Repository Dashboard.

Go to the Available to Build section of the Repository Dashboard Go to the Available to Build section of the Repository Dashboard

Click into the drop-down next to the Build Preview button for the Preview you’d like to build from a specific Base Preview.

Click into the drop-down next to the Build Preview button Click into the drop-down next to the Build Preview button

Select the Select a base preview option.

Click the Select a base preview option Click the Select a base preview option

Click the checkbox(es) next to any Previews you want to use as the basis for your new Preview build(s).

Click checkboxes to select the Previews you want to use as the basis for a Preview build Click checkboxes to select the Previews you want to use as the basis for a Preview build

Press the OK button.

Press the OK button Press the OK button