Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter output of docker images #61

Merged
merged 3 commits into from
Oct 28, 2020
Merged

Filter output of docker images #61

merged 3 commits into from
Oct 28, 2020

Conversation

ludeeus
Copy link
Member

@ludeeus ludeeus commented Oct 28, 2020

Current output:

REPOSITORY                                           TAG                 IMAGE ID            CREATED             SIZE
homeassistant/amd64-builder                          latest              e3cebba27d39        1 second ago        716MB
homeassistant/amd64-base-ubuntu                      18.04               5280d4156ab4        18 hours ago        85.3MB
homeassistant/amd64-builder                          <none>              fad53788139a        24 hours ago        710MB
node                                                 10                  56387899b840        2 weeks ago         911MB
node                                                 12                  1f560ce4ce7e        2 weeks ago         918MB
buildpack-deps                                       stretch             b39de549c36a        2 weeks ago         835MB
buildpack-deps                                       buster              f3f98451c17d        2 weeks ago         804MB
debian                                               9                   c4ccba324c9c        2 weeks ago         101MB
debian                                               8                   091099bf65ad        2 weeks ago         129MB
node                                                 12-alpine           d8b74300d554        2 weeks ago         89.6MB
node                                                 10-alpine           57006130ce4b        3 weeks ago         83.5MB
ubuntu                                               14.04               df043b4f0cf1        5 weeks ago         197MB
jekyll/builder                                       latest              a8007cad4069        7 weeks ago         677MB
alpine                                               3.9                 78a2ce922f86        6 months ago        5.55MB
alpine                                               3.10                be4e4bea2c2e        6 months ago        5.58MB
alpine                                               3.8                 c8bccc0af957        9 months ago        4.41MB
alpine                                               3.7                 6d1ef012b567        20 months ago       4.21MB
mcr.microsoft.com/azure-pipelines/node8-typescript   latest              9a948d360778        2 years ago         595MB

With this change:

REPOSITORY:TAG                                                         SIZE
homeassistant/amd64-builder:ae458893bc149fd8bd8a677f723bdbead40cfa87   716MB
homeassistant/amd64-builder:latest                                     716MB
homeassistant/amd64-base-ubuntu:18.04                                  85.3MB

@ludeeus
Copy link
Member Author

ludeeus commented Oct 28, 2020

Another alternative is to list images before building, and checking images after, and compare against it

@pvizeli
Copy link
Member

pvizeli commented Oct 28, 2020

Yes, we need an before and after

@ludeeus
Copy link
Member Author

ludeeus commented Oct 28, 2020

Expanded the action to pull the image earlier so we get the ID for it, and then using the since filter to get all images created after that

@pvizeli pvizeli merged commit c60c59d into master Oct 28, 2020
@delete-merged-branch delete-merged-branch bot deleted the filter-images branch October 28, 2020 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants