From b8ce1ada3a43b64bdfd562bfc19846d3607e89e3 Mon Sep 17 00:00:00 2001 From: Ludeeus Date: Wed, 28 Oct 2020 11:24:52 +0100 Subject: [PATCH 1/3] Filter output of docker images --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index cfbe35e..177d127 100644 --- a/action.yml +++ b/action.yml @@ -29,7 +29,8 @@ runs: - shell: bash id: verify - run: docker images + run: | + docker images --format "table {{.Repository}}:{{.Tag}}\t{{.Size}}" --filter label=io.hass.version branding: icon: 'home' color: 'blue' From 8a993997640bcaab249bedc012597b7c56a35346 Mon Sep 17 00:00:00 2001 From: Ludeeus Date: Wed, 28 Oct 2020 11:49:10 +0100 Subject: [PATCH 2/3] Filter by since --- action.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 177d127..e977cb7 100644 --- a/action.yml +++ b/action.yml @@ -17,6 +17,15 @@ runs: fi echo "::set-output name=version::${input}" + - shell: bash + run: docker pull homeassistant/amd64-builder:${{ steps.version.outputs.version }} + + - shell: bash + id: builder + run: | + builder=$(docker images homeassistant/amd64-builder:${{ steps.version.outputs.version }} -q) + echo "::set-output name=id::$builder" + - shell: bash id: build run: | @@ -30,7 +39,9 @@ runs: - shell: bash id: verify run: | - docker images --format "table {{.Repository}}:{{.Tag}}\t{{.Size}}" --filter label=io.hass.version + docker images \ + --format "table {{.Repository}}:{{.Tag}}\t{{.Size}}" \ + --filter since=${{ steps.builder.outputs.id }} branding: icon: 'home' color: 'blue' From b58303e59244c84a0fb8800366938e7b0736a53b Mon Sep 17 00:00:00 2001 From: Ludeeus Date: Wed, 28 Oct 2020 12:09:28 +0100 Subject: [PATCH 3/3] Filter out none --- action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action.yml b/action.yml index e977cb7..7449d0f 100644 --- a/action.yml +++ b/action.yml @@ -41,6 +41,8 @@ runs: run: | docker images \ --format "table {{.Repository}}:{{.Tag}}\t{{.Size}}" \ + --filter reference="*/*" \ + --filter reference="*" \ --filter since=${{ steps.builder.outputs.id }} branding: icon: 'home'