|
|
@ -76,10 +76,6 @@ for component in "${COMPONENTS[@]}"; do
|
|
|
|
latest="$BASE/wubloader-$component:latest"
|
|
|
|
latest="$BASE/wubloader-$component:latest"
|
|
|
|
specific="$BASE/wubloader-$component:$TAG"
|
|
|
|
specific="$BASE/wubloader-$component:$TAG"
|
|
|
|
if [ -n "$MULTIPLATFORM" ]; then
|
|
|
|
if [ -n "$MULTIPLATFORM" ]; then
|
|
|
|
echo "Creating multi-arch manifests"
|
|
|
|
|
|
|
|
"$BUILD_CMD" manifest create "$specific"
|
|
|
|
|
|
|
|
"$BUILD_CMD" manifest create "$latest"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# buscribe doesn't (yet?) build under arm64 due to pulling in libc-bin, skip arm64 for it
|
|
|
|
# buscribe doesn't (yet?) build under arm64 due to pulling in libc-bin, skip arm64 for it
|
|
|
|
if [ "$component" != "buscribe" ]; then
|
|
|
|
if [ "$component" != "buscribe" ]; then
|
|
|
|
"$BUILD_CMD" build \
|
|
|
|
"$BUILD_CMD" build \
|
|
|
@ -108,12 +104,23 @@ for component in "${COMPONENTS[@]}"; do
|
|
|
|
.
|
|
|
|
.
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "Built image wubloader-$component:$TAG"
|
|
|
|
echo "Built image wubloader-$component:$TAG"
|
|
|
|
if [ -n "$PUSH" ]; then
|
|
|
|
if [ -n "$MULTIPLATFORM" ]; then
|
|
|
|
echo "Pushing tag $specific"
|
|
|
|
if [ -n "$PUSH" ]; then
|
|
|
|
"$BUILD_CMD" push "$specific"
|
|
|
|
echo "Pushing tag $specific"
|
|
|
|
fi
|
|
|
|
"$BUILD_CMD" manifest push "$specific"
|
|
|
|
if [ "$PUSH" == "latest" ]; then
|
|
|
|
fi
|
|
|
|
echo "Pushing tag $latest"
|
|
|
|
if [ "$PUSH" == "latest" ]; then
|
|
|
|
"$BUILD_CMD" push "$latest"
|
|
|
|
echo "Pushing tag $latest"
|
|
|
|
fi
|
|
|
|
"$BUILD_CMD" manifest push "$latest"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
if [ -n "$PUSH" ]; then
|
|
|
|
|
|
|
|
echo "Pushing tag $specific"
|
|
|
|
|
|
|
|
"$BUILD_CMD" push "$specific"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$PUSH" == "latest" ]; then
|
|
|
|
|
|
|
|
echo "Pushing tag $latest"
|
|
|
|
|
|
|
|
"$BUILD_CMD" push "$latest"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|