From 0149503e2685efac592aef79a7fe39bfbfdfba5c Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 11 Jan 2023 14:03:02 +0100 Subject: [PATCH] ci: inspect with json output Signed-off-by: CrazyMax --- .github/workflows/ci.yml | 16 ++++++++-------- .github/workflows/e2e.yml | 2 +- .github/workflows/example.yml | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc273ca..b8de236 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,7 +84,7 @@ jobs: - name: Inspect run: | - docker buildx imagetools inspect localhost:5000/name/app:1.0.0 + docker buildx imagetools inspect localhost:5000/name/app:1.0.0 --format '{{json .}}' - name: Check digest run: | @@ -143,7 +143,7 @@ jobs: - name: Inspect run: | - docker buildx imagetools inspect localhost:5000/name/app:1.0.0 + docker buildx imagetools inspect localhost:5000/name/app:1.0.0 --format '{{json .}}' - name: Check digest run: | @@ -190,7 +190,7 @@ jobs: - name: Inspect run: | - docker buildx imagetools inspect localhost:5000/name/app:1.0.0 + docker buildx imagetools inspect localhost:5000/name/app:1.0.0 --format '{{json .}}' - name: Check digest run: | @@ -536,7 +536,7 @@ jobs: name: Inspect image if: matrix.target == 'image' run: | - docker buildx imagetools inspect --format "{{json .}}" localhost:5000/name/app:latest | jq + docker buildx imagetools inspect localhost:5000/name/app:latest --format '{{json .}}' - name: Check output folder if: matrix.target == 'binary' @@ -598,7 +598,7 @@ jobs: - name: Inspect run: | - docker buildx imagetools inspect localhost:5000/name/app:1.0.0 + docker buildx imagetools inspect localhost:5000/name/app:1.0.0 --format '{{json .}}' - name: Check digest run: | @@ -736,7 +736,7 @@ jobs: - name: Inspect (1) run: | - docker buildx imagetools inspect localhost:5000/name/app:latest + docker buildx imagetools inspect localhost:5000/name/app:latest --format '{{json .}}' - name: Check digest (1) run: | @@ -766,7 +766,7 @@ jobs: - name: Inspect (2) run: | - docker buildx imagetools inspect localhost:5000/name/app:latest + docker buildx imagetools inspect localhost:5000/name/app:latest --format '{{json .}}' - name: Check digest (2) run: | @@ -822,7 +822,7 @@ jobs: - name: Inspect run: | - docker buildx imagetools inspect localhost:5000/name/app:1.0.0 + docker buildx imagetools inspect localhost:5000/name/app:1.0.0 --format '{{json .}}' standalone: runs-on: ubuntu-latest diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index f630c10..2626510 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -120,4 +120,4 @@ jobs: name: Check manifest if: github.event_name != 'pull_request' run: | - docker buildx imagetools inspect ${{ matrix.slug }}:${{ steps.meta.outputs.version }} + docker buildx imagetools inspect ${{ matrix.slug }}:${{ steps.meta.outputs.version }} --format '{{json .}}' diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index ec6ed41..74f1109 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -71,4 +71,4 @@ jobs: name: Check manifest if: github.event_name != 'pull_request' run: | - docker buildx imagetools inspect ${{ env.DOCKER_IMAGE }}:${{ steps.meta.outputs.version }} + docker buildx imagetools inspect ${{ env.DOCKER_IMAGE }}:${{ steps.meta.outputs.version }} --format '{{json .}}'