GitLab

Yawl builds, deploys on push and previews merge requests from GitLab.com and from a self-hosted GitLab, the way it does from GitHub.

Connect a host

Integrations, GitLab: the host (gitlab.com, or your GitLab’s address, reached over https) and an access token: a personal, group or project token with read_repository. Add api and Yawl also writes the preview’s address on each merge request. Yawl checks the token with GitLab, keeps it sealed, and never shows it again. Only an Admin connects or forgets a host.

The answer shows a webhook address and a secret token, once. In GitLab, on a group (every project in it) or one project, Settings, Webhooks: that address, that secret token, Push events and Merge request events.

Services

A service whose repo is on a connected host builds with its token:

services:
  - name: shop
    kind: web
    repo: https://gitlab.acme.uz/team/sub/shop
    branch: main
    port: 8080
  • A push to its branch deploys it; GitLab’s retries of the same push deploy nothing more.
  • With preview: true on the environment, a merge request from a branch of the same project gets its own copy of the environment, renewed on each push and removed when it is merged or closed. A merge request from a fork gets none: its code would run with your secrets.
  • Repositories are matched by host and full path, subgroups included: a push to team/sub/shop never deploys team/shop.