mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-29 02:59:59 -05:00
* feat: Implement using of buildx for docker_image * fix: secrets in docker_image * fix: fmt issues * test: Add test for build_log_file * chore: Disable flaky test and update goreleaser to exclude not possible build * feat: Small refactoring and documentation improvements
20 lines
346 B
HCL
20 lines
346 B
HCL
resource "docker_image" "test" {
|
|
name = "ubuntu:11"
|
|
build {
|
|
context = "."
|
|
dockerfile = "Dockerfile"
|
|
force_remove = true
|
|
builder = "default"
|
|
platform = "linux/amd64"
|
|
|
|
secrets {
|
|
id = "TEST_SECRET_SRC"
|
|
src = "./secret"
|
|
}
|
|
|
|
secrets {
|
|
id = "TEST_SECRET_ENV"
|
|
env = "PATH"
|
|
}
|
|
}
|
|
}
|