Read more

How to push to Git without running CI on GitLab CI, GitHub Actions, or Travis CI

Arne Hartherz
April 14, 2021Software engineer at makandra GmbH

If a project ist configured to spawn CI runners for tests or deployment when pushing to the Repo, a habit of pushing WIP commits regularly may conflict with that.
Here are two solutions that allow you to keep pushing whenever you feel like it.

Special commit message

Illustration money motivation

Opscomplete powered by makandra brand

Save money by migrating from AWS to our fully managed hosting in Germany.

  • Trusted by over 100 customers
  • Ready to use with Ruby, Node.js, PHP
  • Proactive management by operations experts
Read more Show archive.org snapshot

To skip a CI run, simply add [ci skip] or [skip ci] to your commit message. Example:

git commit -m "wip authentication [ci skip]"

Git push options (GitLab)

In addition to that, GitLab CI supports Git push options. Instead of changing your commit message, specify the ci.skip option when pushing. Note that this does not skip Merge Request pipelines. Example:

git commit -m "wip authentication"
git push -o ci.skip # Does not skip Merge Request pipelines

Documentation

See also:

Posted by Arne Hartherz to makandra dev (2021-04-14 11:03)