From 076236eb4d48c4284306108cf4b0a2b8084d13dc Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Tue, 16 Aug 2022 22:35:58 +0300 Subject: [PATCH 1/2] e2e: pull and export stdin and stdout --- .github/workflows/e2e.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 4bc153bfc..dffcc7a4e 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -82,3 +82,12 @@ jobs: ./app/crane pull --platform=linux/arm64 --format=oci $remote $distroless ./app/crane push $distroless $local diff <(./app/crane manifest --platform linux/arm64 $remote) <(./app/crane manifest $local) + + - name: crane pull image, and export it from stdin to filesystem tar to stdout + shell: bash + run: | + set -euxo pipefail + + ./app/crane pull ubuntu ubuntu.tar + ./app/crane export - - < ubuntu.tar > filesystem.tar + From b0c6d9ce918c817c8391e40c2d6041d67890b1fa Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Tue, 16 Aug 2022 22:40:02 +0300 Subject: [PATCH 2/2] List all resulting tar files --- .github/workflows/e2e.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index dffcc7a4e..d6a377202 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -90,4 +90,5 @@ jobs: ./app/crane pull ubuntu ubuntu.tar ./app/crane export - - < ubuntu.tar > filesystem.tar + ls -la *.tar