kitabisa / docker-slim-action

GitHub Action to minify container image by up to 30x (and for compiled languages even more) making it secure too!
MIT License
22 stars 5 forks source link

Fix docker slim version selection #3

Closed Eugene-Berezhnyi closed 1 year ago

Eugene-Berezhnyi commented 1 year ago

in this file dist/index.js

This block has a bug, in else block should "inputVersion" instead of "inputTag"

    try {
        if (inputVersion == "" || inputVersion == "latest") {
            VER = response[0].tag_name;
        }
        else {
            VER = inputTag;
        }
    }