Can I trigger travis ci to build my app by creating git tag?

Vladimir Starkov

I want to trigger Travis CI to build and deploy when I create tag via github web interface. I can't find information about triggers for Travis CI. So can I do it?

Odi

A build should automatically start when a new tag is created. To deploy you have to add the follow bit to the deploy section:

on:
   tags: true

Here is a complete example:

language: php

php:
- 5.3
- 5.4

deploy:
  provider: heroku
  strategy: git
  skip_cleanup: true
  app: myapp
  on:
    tags: true
    php: '5.4'
  api_key:
    secure: NL10DAVFJJPk7mHdKeN3q5hpKgRq/gKpEnsXeBb7dDcnW0XuwmO88srMVbYHOA6w3kw50aPkKZ1AirElPjcpm2uxEz/tW7PpshY8fGDKdCyuczXKh24avTpD8nF8lskTIPXVpwWBYxCoFziRsd+eQBKHCsRyrQcv0mjg2j2MoNE=

Travis CI has a nice documentation about all the possibilities.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I have Travis-CI build my electron app for multiple OSes in parallel?

How can I run a script as part of a Travis CI build?

How can I build Visual Studio 2019 projects on Travis CI?

Travis CI build failing because my project is one level down from the git repository directory

How can I make Jenkins CI with Git trigger on pushes to master?

Travis CI + Go: can't build

Access git tag message in Travis build

trigger travis CI build only with specific commit message

Is it possible to have Travis-ci trigger another repository's build?

Disable VSTS build trigger when creating tag

Travis CI + Go: creating a specific build flow for different OS

Travis-CI Auto-Tag Build for GitHub Release

I can't build android-27 , tool-27.0.2 with travis.CI

Where can I find a list of 'os' and 'dist' options for Travis-CI / Multi OS Build Matrix

Git tag name as version in Go via Travis-CI

How can I use git lfs with Travis CI gh-pages deploy?

Build webpack on travis ci

How can I build a git tag on Openshift Origin?

How to trigger a fail in Travis CI?

I've got a CPython C++ module with C++11 code, but I can't seem to build on travis-ci

Can't build project with Travis-CI and Android

How do I build Python 3.8 on Travis CI?

Where can I find build artifacts in Travis?

How can I reference a Travis secure variable in my build.gradle?

How can I deploy a node.js app to a private server after a successful Travis build/test?

Why can't Travis-CI find my cocoapod dependencies?

Filter CI trigger in TFS vnext build to a subfolder of git repo

How can I build my local git repo on external server?

I got error code 1442 for creating TRIGGER in MySQL and another syntax error for my other trigger? How can I fix it?