Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
simaotwx committed Aug 13, 2024
1 parent 1c4c9fb commit 99a7a4b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion examples/example.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ source "file" "example" {
target = "/dev/null"
}

source "file" "var_test" {
content = jsonencode({
test_var1 = var.test_var1
test_var2 = var.test_var2
test_int = var.test_int
test_float = var.test_float
test_big_float = var.test_big_float
test_bool = var.test_bool
test_list = var.test_list
})
target = "/tmp/tpp_test_vars.json"
}

build {
sources = ["sources.file.example"]
sources = ["sources.file.example", "sources.file.var_test"]
}

0 comments on commit 99a7a4b

Please sign in to comment.