-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
224c3d1
commit af072b2
Showing
6 changed files
with
45 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
scripts/testing/docker_registry_image_context_dockerignore/.dockerignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
empty_to_ignore | ||
to_be_ignored |
2 changes: 1 addition & 1 deletion
2
scripts/testing/docker_registry_image_context_dockerignore/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
FROM scratch | ||
COPY empty /empty | ||
COPY * / |
Empty file.
18 changes: 18 additions & 0 deletions
18
testdata/resources/docker_registry_image/testBuildDockerRegistryImageNoKeepJustCache.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
provider "docker" { | ||
alias = "private" | ||
registry_auth { | ||
address = "%s" | ||
} | ||
} | ||
resource "docker_registry_image" "%s" { | ||
provider = "docker.private" | ||
name = "%s" | ||
insecure_skip_verify = true | ||
|
||
build { | ||
context = "%s" | ||
remove = false | ||
force_remove = false | ||
no_cache = false | ||
} | ||
} |