Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/build/builder/util/dockerfile/dockerfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@ COPY . /boot
FROM centos:7`,
want: []string{"scratch", "centos:7"},
},
"FROM with ARG": {
in: `ARG TAG=7
FROM centos:$TAG`,
want: []string{"centos:7"},
},
}
for name, tc := range testCases {
node, err := Parse(strings.NewReader(tc.in))
Expand Down