terraform-provider-git

command module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

README

Terraform Provider for Git

Requirements

Usage

provider "git" {}

data "git_repository" "example" {
  path = path.root
}

resource "azurerm_resource_group" "example" {
  ...

  tags = {
    branch = data.git_repository.example.branch
    commit = substr(data.git_repository.example.commit_sha, 0, 7)
    tag    = data.git_repository.example.tag
  }
}

Contributing

To build the provider:

$ go build

To test the provider:

$ go test -v ./...

To run all acceptance tests:

Note: Acceptance tests create real resources, and often cost money to run.

$ TF_ACC=1 go test -v ./...

To run a subset of acceptance tests:

$ TF_ACC=1 go test -v ./... -run=TestAccDataSourceGitRepository

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
git

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL