Sfoglia il codice sorgente

tests: inline dockerfile

Signed-off-by: Laura Brehm <[email protected]>
Laura Brehm 2 anni fa
parent
commit
ee70085fba
1 ha cambiato i file con 4 aggiunte e 6 eliminazioni
  1. 4 6
      e2e/cucumber-features/build-contexts.feature

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

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