// 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"
}
api_base_url
- API base URL for Travis CI. (defaulthttps://api.travis-ci.com/
)token
- API token generated by the Travis CI client.
travis_env_var
- https://docs.travis-ci.com/user/environment-variables/
Check details of schema with terraform providers schema
.