Skip to content

Commit 7435399

Browse files
committed
Add release-docker
1 parent 0ee8a84 commit 7435399

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

deploy.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ while [ $# -ne 0 ]; do
3434
pypi)
3535
release=1
3636
;;
37+
dockerhub)
38+
release_docker=1
39+
;;
3740
*)
3841
;;
3942
esac
@@ -48,7 +51,7 @@ python3 setup.py bdist_wheel
4851
pip install --upgrade --force-reinstall dist/sonar_tools-*-py3-*.whl
4952

5053
if [ "$build_image" == "1" ]; then
51-
docker build -t sonar-tools:latest .
54+
docker build -t olivierkorach/sonar-tools:3.4 -t olivierkorach/sonar-tools:latest -f snapshot.Dockerfile .
5255
fi
5356

5457
if [ "$build_docs" == "1" ]; then
@@ -63,4 +66,8 @@ if [ "$release" = "1" ]; then
6366
if [ "$confirm" = "y" ]; then
6467
python3 -m twine upload dist/sonar_tools-*-py3-*.whl
6568
fi
69+
fi
70+
71+
if [ "$release_docker" = "1" ]; then
72+
docker buildx build --push --platform linux/amd64,linux/arm64 -t olivierkorach/sonar-tools:3.4 -t olivierkorach/sonar-tools:latest -f release.Dockerfile .
6673
fi

0 commit comments

Comments
 (0)