Explorar o código

tests: inline dockerfile

Signed-off-by: Laura Brehm <[email protected]>
Laura Brehm %!s(int64=2) %!d(string=hai) anos
pai
achega
ee70085fba
Modificáronse 1 ficheiros con 4 adicións e 6 borrados
  1. 4 6
      e2e/cucumber-features/build-contexts.feature

+ 4 - 6
e2e/cucumber-features/build-contexts.feature

@@ -7,15 +7,13 @@ Background:
           a:
             build:
                 context: .
+                dockerfile_inline: |
+                    # syntax=docker/dockerfile:1
+                    FROM alpine:latest
+                    COPY --from=dep /etc/hostname /
                 additional_contexts:
                   - dep=docker-image://ubuntu:latest
         """
-    And a dockerfile
-        """
-        # syntax=docker/dockerfile:1
-        FROM alpine:latest
-        COPY --from=dep /etc/hostname /
-        """
 
 Scenario: Build w/ build context
     When I run "compose build"