The gitlab_release
data source retrieves information about a gitlab release for a project.
Upstream API: GitLab REST API docs
# By project ID and tag_name
data "gitlab_release" "example" {
project_id = 1234
tag_name = "v1.0"
}
project_id
(String) The ID or URL-encoded path of the project.tag_name
(String) The Git tag the release is associated with.assets
(Block, Read-only) The assets for a release (see below for nested schema)created_at
(String) The date the release was created.description
(String) An HTML rendered description of the release.id
(String) The ID of this Terraform resource. In the format of <project_id:tag_name>
.name
(String) The name of the release.released_at
(String) The date the release was created.assets
Read-Only:
count
(Number) The number of assets for a releaselinks
(Block List) The links for a release (see below for nested schema)sources
(Block List) The sources for a release (see below for nested schema)assets.links
Read-Only:
id
(Number) The ID of the linklink_type
(String) The type of the linkname
(String) The name of the linkurl
(String) The URL of the linkassets.sources
Read-Only:
format
(String) The format of the sourceurl
(String) The URL of the source