Skip to content

bgpat/terraform-provider-travis

Repository files navigation

Terraform Provider for Travis CI

release

Example

// require $TRAVIS_TOKEN
terraform {
  required_providers {
    travis = {
      source = "bgpat/travis"
    }
  }
}

// secret env var
resource "travis_env_var" "secret" {
  repository_slug = "bgpat/test"
  name            = "SECRET_ENV"
  value           = "secret"
}

// public env var
resource "travis_env_var" "public" {
  repository_slug = "bgpat/test"
  name            = "PUBLIC_ENV"
  public_value    = "public"
}

Resources

Check details of schema with terraform providers schema.