atlassian / terraform-provider-artifactory

Terraform provider to manage Artifactory
Apache License 2.0
89 stars 42 forks source link

Add the resolveDockerTagsByTimestamp argument to virtual repository resource #70

Open AlexanderRMcNeill opened 4 years ago

AlexanderRMcNeill commented 4 years ago

Community Note

Description

Add the resolveDockerTagsByTimestamp argument to virtual repository resource.

As of Artifactory version 6.12 it now supports the ability to resolve images with the same docker tags by timestamp. See the release notes here.

New or Affected Resource(s)

Potential Terraform Configuration

resource "artifactory_local_repository" "bar" {
  key = "bar"
  package_type = "docker"
}

resource "artifactory_local_repository" "baz" {
  key = "baz"
  package_type = "docker"
}

resource "artifactory_virtual_repository" "docker" {
  key          = "foo"
  package_type = "docker"
  resolve_docker_tags_by_timestamp = true
  repositories = [
    "${artifactory_local_repository.bar.key}", 
    "${artifactory_local_repository.baz.key}"
  ]
}

References

AlexanderRMcNeill commented 4 years ago

I will have a go at adding this myself