This commit is contained in:
lucio 2024-03-08 15:10:14 +01:00
parent a8aa65b889
commit f7d4877e5c
1 changed files with 6 additions and 6 deletions

View File

@ -44,15 +44,15 @@ done
echo "goal: $goal";
echo "platform: $platform";
if [ -z ${goal} ]; then mvn clean package; else mvn clean ${goal}; fi
if [ -z $goal ]; then mvn clean package; else mvn clean ${goal}; fi
if [ -z ${platform} ];
then docker build -t smartgears-distribution:${image_version} .;
else docker build -t smartgears-distribution:${image_version} --platform=linux/amd64,linux/arm64,linux/arm/v7 . ;
if [ -z $platform ];
then docker build -t smartgears-distribution:$image_version .;
else docker build -t smartgears-distribution:$image_version --platform=linux/amd64,linux/arm64,linux/arm/v7 . ;
fi
docker tag smartgears-distribution:${image_version} d4science/smartgears-distribution:${image_version}
docker tag smartgears-distribution:$image_version d4science/smartgears-distribution:$image_version
if [ ${push} = true ]; then
docker push d4science/smartgears-distribution:${image_version};
docker push d4science/smartgears-distribution:$image_version;
fi