updated
This commit is contained in:
parent
a8aa65b889
commit
f7d4877e5c
|
@ -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
|
Loading…
Reference in New Issue