HiveBrain v1.2.0
Get Started
← Back to all entries
patterngitMinor

Is it possible to autodeploy on every commit in a specific branch using Travis CI and GitHub?

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
committravisgithubeverypossibleusingspecificandbranchautodeploy

Problem

I'd like to deploy files using Travis CI and it only works for a tagged commit. When committing to the branch, there is a warning:


Skipping a deployment with the releases provider because this is not a tagged commit.

Is there any way to deploy on branched commit using Travis CI?

To clarify, it works when I tag the commit, but I'd like to deploy files on each commit for the given branch.

Solution

Instead of using Travis' deployment features, build the deployment logic in to your normal "test" script(s). For a PaaS this might be as simple as pushing to another git remote if all tests pass, but the sky is the limit.

Context

StackExchange DevOps Q#59, answer score: 6

Revisions (0)

No revisions yet.