Update action.yaml
This commit is contained in:
parent
e58eff1173
commit
9bb5cdeff4
@ -14,19 +14,21 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
BROMITE_SHA="${{ inputs.sha }}"
|
BROMITE_SHA="${{ inputs.sha }}"
|
||||||
|
|
||||||
IS_PRESENT=$(docker manifest inspect uazo/bromite-build:$BROMITE_SHA > /dev/null ; echo $?)
|
IS_PRESENT=$(docker inspect --type=image uazo/bromite-build:$BROMITE_SHA > /dev/null ; echo $?)
|
||||||
if [ $IS_PRESENT -ne "0" ]; then
|
if [ $IS_PRESENT -ne "0" ]; then
|
||||||
echo "Image not found"
|
IS_PRESENT=$(docker manifest inspect uazo/bromite-build:$BROMITE_SHA > /dev/null ; echo $?)
|
||||||
|
if [ $IS_PRESENT -ne "0" ]; then
|
||||||
|
echo "Image not found"
|
||||||
|
|
||||||
mkdir bromite-source
|
mkdir bromite-source
|
||||||
pushd bromite-source/
|
pushd bromite-source/
|
||||||
git clone https://github.com/uazo/bromite-buildtools
|
git clone https://github.com/uazo/bromite-buildtools
|
||||||
|
|
||||||
cd bromite-buildtools/images/bromite-build/
|
cd bromite-buildtools/images/bromite-build/
|
||||||
DOCKER_BUILDKIT=1 docker build -t uazo/bromite-build:$BROMITE_SHA --progress plain \
|
DOCKER_BUILDKIT=1 docker build -t uazo/bromite-build:$BROMITE_SHA --progress plain \
|
||||||
--no-cache \
|
--build-arg BROMITE_SHA=$BROMITE_SHA \
|
||||||
--build-arg BROMITE_SHA=$BROMITE_SHA \
|
.
|
||||||
.
|
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user