File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff 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
4851pip install --upgrade --force-reinstall dist/sonar_tools-* -py3-* .whl
4952
5053if [ " $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 .
5255fi
5356
5457if [ " $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 .
6673fi
You can’t perform that action at this time.
0 commit comments