From 4e5b6df9d804a96f07bb3310778c65bd2837a05f Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Sun, 11 Jul 2021 12:59:31 +0200 Subject: [PATCH] Update action.yaml --- images/build-deps/action.yaml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/images/build-deps/action.yaml b/images/build-deps/action.yaml index b0e4c2b..3dc1e93 100644 --- a/images/build-deps/action.yaml +++ b/images/build-deps/action.yaml @@ -13,17 +13,20 @@ runs: shell: bash run: | VERSION="${{ inputs.version }}" - IS_PRESENT=$(docker manifest inspect uazo/build-deps:$VERSION > /dev/null ; echo $?) + IS_PRESENT=$(docker inspect --type=image uazo/build-deps:$VERSION > /dev/null ; echo $?) if [ $IS_PRESENT -ne "0" ]; then - echo "Image not found" + IS_PRESENT=$(docker manifest inspect uazo/build-deps:$VERSION > /dev/null ; echo $?) + if [ $IS_PRESENT -ne "0" ]; then + echo "Image not found" - mkdir build-repo - pushd build-repo/ + mkdir build-repo + pushd build-repo/ - git clone https://github.com/uazo/bromite-buildtools - cd bromite-buildtools/images/build-deps/ - docker build -t uazo/build-deps:$VERSION --progress plain --build-arg . + git clone https://github.com/uazo/bromite-buildtools + cd bromite-buildtools/images/build-deps/ + docker build -t uazo/build-deps:$VERSION --progress plain --build-arg . - popd - rm -rf build-repo + popd + rm -rf build-repo + fi fi