Update action.yaml

This commit is contained in:
uazo 2021-07-11 12:39:16 +02:00 committed by GitHub
parent e58eff1173
commit 9bb5cdeff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,8 @@ runs:
run: |
BROMITE_SHA="${{ inputs.sha }}"
IS_PRESENT=$(docker inspect --type=image uazo/bromite-build:$BROMITE_SHA > /dev/null ; echo $?)
if [ $IS_PRESENT -ne "0" ]; then
IS_PRESENT=$(docker manifest inspect uazo/bromite-build:$BROMITE_SHA > /dev/null ; echo $?)
if [ $IS_PRESENT -ne "0" ]; then
echo "Image not found"
@ -24,9 +26,9 @@ runs:
cd bromite-buildtools/images/bromite-build/
DOCKER_BUILDKIT=1 docker build -t uazo/bromite-build:$BROMITE_SHA --progress plain \
--no-cache \
--build-arg BROMITE_SHA=$BROMITE_SHA \
.
popd
fi
fi