Skip to content

Commit

Permalink
bug fixes in build bash scripts
Browse files Browse the repository at this point in the history
Signed-off-by: SRIKUMAR VENUGOPAL <srikumarv@ie.ibm.com>
  • Loading branch information
srikumar003 committed Jan 21, 2024
1 parent a04271c commit 33b57c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build-tools/build_components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ do
esac
done


if [ $CREATE_NEW_BUILDX_CONTEXT = "yes" ]; then
docker buildx create --use
fi

if [ $BUILD_AND_PUSH = "yes" ]; then
if [ $SKIP_LOGIN = "no" ]; then
echo $REGISTRY_PASSWORD | docker login -u $REGISTRY_USERNAME --password-stdin $REGISTRY_URL
fi
if [ $CREATE_NEW_BUILDX_CONTEXT = "yes" ]; then
docker buildx create --use
fi
(cd ../src/dataset-operator && ./build_multiarch_dataset_operator.sh -p $REGISTRY_URL)
(cd ../src/generate-keys && ./build_multiarch_generate_keys.sh -p $REGISTRY_URL)
else
Expand Down

0 comments on commit 33b57c4

Please sign in to comment.