mirror of https://github.com/wolfSSL/wolfssl.git
Update buildAndPush script
parent
63ec8fe83a
commit
085b78994d
|
@ -18,18 +18,37 @@ docker build -t wolfssl/wolfssl-builder:${CUR_DATE} ${DOCKER_BUILD_OPTIONS} "${W
|
||||||
docker tag wolfssl/testing-cross-compiler:${CUR_DATE} wolfssl/testing-cross-compiler:latest
|
docker tag wolfssl/testing-cross-compiler:${CUR_DATE} wolfssl/testing-cross-compiler:latest
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Pushing containers to DockerHub"
|
echo "Push containers to DockerHub [y/N]? "
|
||||||
docker push wolfssl/wolfssl-builder:${CUR_DATE} && docker push wolfssl/wolfssl-builder:latest && \
|
read val
|
||||||
docker push wolfssl/testing-cross-compiler:${CUR_DATE} && docker push wolfssl/testing-cross-compiler:latest
|
if [ "$val" = "y" ]; then
|
||||||
|
docker push wolfssl/wolfssl-builder:${CUR_DATE} && docker push wolfssl/wolfssl-builder:latest && \
|
||||||
|
docker push wolfssl/testing-cross-compiler:${CUR_DATE} && docker push wolfssl/testing-cross-compiler:latest
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Warning: push failed. Continuing"
|
||||||
|
((NUM_FAILURES++))
|
||||||
|
fi
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Warning: Build wolfssl/wolfssl-builder failed. Continuing"
|
echo "Warning: Build wolfssl/wolfssl-builder failed. Continuing"
|
||||||
((NUM_FAILURES++))
|
((NUM_FAILURES++))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Building wolfssl/wolfCLU:${CUR_DATE}"
|
echo "Building wolfssl/wolfCLU:${CUR_DATE}"
|
||||||
docker buildx build --pull --push --build-arg DUMMY=${CUR_DATE} -t wolfssl/wolfclu:${CUR_DATE} --platform=linux/amd64,linux/arm64,linux/arm/v7 "${WOLFSSL_DIR}/Docker/wolfCLU" && \
|
DOCKER_ARGS="--pull --build-arg DUMMY=${CUR_DATE} --platform=linux/amd64,linux/arm64,linux/arm/v7 ${WOLFSSL_DIR}/Docker/wolfCLU"
|
||||||
docker buildx build --pull --push --build-arg DUMMY=${CUR_DATE} -t wolfssl/wolfclu:latest --platform=linux/amd64,linux/arm64,linux/arm/v7 "${WOLFSSL_DIR}/Docker/wolfCLU"
|
docker buildx build -t wolfssl/wolfclu:${CUR_DATE} ${DOCKER_ARGS} && \
|
||||||
if [ $? -ne 0 ]; then
|
docker buildx build -t wolfssl/wolfclu:latest ${DOCKER_ARGS}
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "Push containers to DockerHub [y/N]? "
|
||||||
|
read val
|
||||||
|
if [ "$val" = "y" ]; then
|
||||||
|
docker buildx build ${DOCKER_ARGS} --push -t wolfssl/wolfclu:${CUR_DATE} && \
|
||||||
|
docker buildx build ${DOCKER_ARGS} --push -t wolfssl/wolfclu:latest
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Warning: push failed. Continuing"
|
||||||
|
((NUM_FAILURES++))
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
echo "Warning: Build wolfssl/wolfclu failed. Continuing"
|
echo "Warning: Build wolfssl/wolfclu failed. Continuing"
|
||||||
((NUM_FAILURES++))
|
((NUM_FAILURES++))
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue