File tree 3 files changed +12
-0
lines changed
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -242,6 +242,14 @@ func (s *TaskSuite) TestUnpackRootfs() {
242
242
s .Equal (meta .Env , []string {"PATH=/darkness" , "BA=nana" })
243
243
}
244
244
245
+ func (s * TaskSuite ) TestBuildkitSecrets () {
246
+ s .req .Config .ContextDir = "testdata/buildkit-secret"
247
+ s .req .Config .BuildkitSecrets = map [string ]string {"secret" : "testdata/buildkit-secret/secret" }
248
+
249
+ _ , err := s .build ()
250
+ s .NoError (err )
251
+ }
252
+
245
253
func (s * TaskSuite ) TestRegistryMirrors () {
246
254
mirror := httptest .NewServer (registry .New ())
247
255
defer mirror .Close ()
Original file line number Diff line number Diff line change
1
+ # syntax = docker/dockerfile:1.0-experimental
2
+ FROM busybox
3
+ RUN --mount=type=secret,id=secret test "$(cat /run/secrets/secret)" = "hello-world"
Original file line number Diff line number Diff line change
1
+ hello-world
You can’t perform that action at this time.
0 commit comments