Skip to main content
Environment keys: branch or tag (what triggers it), after (run after another environment), approval (a human must approve), via (deployer), verify, rollback, options.

Which commit goes live

Every job receives SLIPWAY_SHA from the provider (github.sha, CI_COMMIT_SHA, BITBUCKET_COMMIT, CIRCLE_SHA1). Deployers that can pin a commit use that SHA, or the artifact this run packed, rather than the current head of the branch. See Deployers and Laravel Cloud.

Out-of-order runs

Two CI runs can finish in the wrong order: a slow job on an older commit can complete after a newer one. concurrency.cancel_superseded (default true) is how Slipway stops that older commit from going live last.
  • Pull-request runs that a newer push has made obsolete are cancelled.
  • A deploy that is already running is not cancelled. Killing a production release mid-symlink is worse.
  • Deploys for one environment queue. They do not overlap.
One concurrency group per workflow and git ref. cancel-in-progress is true only for pull requests, so a push that is mid-deploy is allowed to finish. Each environment also has group slipway-deploy-<name> with cancel-in-progress: false, so production deploys serialize.
Non-deploy jobs are interruptible. Deploy jobs are not. Each environment uses a resource_group. Turn on Auto-cancel redundant pipelines under Settings → CI/CD → General pipelines.
YAML cannot cancel superseded runs. Slipway reports this when you compile.
YAML cannot cancel superseded runs. Turn on Auto-cancel redundant workflows under Project Settings → Advanced. Deploys use serial-group per environment, which queues them and skips an older pipeline that is still waiting behind a newer one.

Verify

Verify runs an HTTP health check after the deploy, with retries: url or url_secret, plus path (default /up), expect (default 200), retries (default 5), delay (seconds, default 10). If verification fails and rollback is on, the previous release is restored and the job still fails, so a broken deploy is never reported as green.
Rollback re-points the release; it does not undo database migrations. Keep migrations backwards compatible (expand, then contract).
See Deployers for via options, and SSH server setup for a one-time server layout.