Skip to content

Commit 44dcd9b

Browse files
committed
cut off provider example
1 parent 0d73c43 commit 44dcd9b

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

examples/provider/provider.tf

-28
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,3 @@ terraform {
99
// The provider currently requires no additional configuration.
1010
provider "envbuilder" {}
1111

12-
// Creating this resource will check the registry located at
13-
// localhost:5000 for the presence of a devcontainer built from
14-
// the specified Git repo.
15-
resource "envbuilder_cached_image" "example" {
16-
builder_image = "ghcr.io/coder/envbuilder:latest"
17-
git_url = "https://github.com/coder/envbuilder-starter-devcontainer"
18-
cache_repo = "localhost:5000"
19-
}
20-
21-
22-
// If the image is found in the remote repo, this output
23-
// will be equal to the remote cached image. Otherwise
24-
// it will be set to the value of `builder_image`.
25-
output "image" {
26-
value = envbuilder_cached_image.example.image
27-
}
28-
29-
// Whether the remote cached image was found or not.
30-
output "exists" {
31-
value = envbuilder_cached_image.example.exists
32-
}
33-
34-
// The SHA256 repo digest of the remote image, if found.
35-
// Otherwise, this will be the null UUID.
36-
output "id" {
37-
value = envbuilder_cached_image.example.id
38-
}
39-

0 commit comments

Comments
 (0)