File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,10 @@ python3 $ROOTDIR/setup.py bdist_wheel
5454# Deploy locally for tests
5555pip install --upgrade --force-reinstall $ROOTDIR /dist/sonar_tools-* -py3-* .whl
5656
57+ version=$( grep PACKAGE_VERSION $ROOTDIR /sonar/version.py | cut -d " =" -f 2 | sed -e " s/[\'\" ]//g" -e " s/^ +//" -e " s/ +$//" )
58+
5759if [ " $build_image " == " 1" ]; then
58- docker build -t olivierkorach/sonar-tools:3.5 -t olivierkorach/sonar-tools:latest -f $CONFDIR /snapshot.Dockerfile $ROOTDIR --load
60+ docker build -t olivierkorach/sonar-tools:$version -t olivierkorach/sonar-tools:latest -f $CONFDIR /snapshot.Dockerfile $ROOTDIR --load
5961fi
6062
6163if [ " $build_docs " == " 1" ]; then
@@ -68,10 +70,11 @@ if [ "$release" = "1" ]; then
6870 echo " Confirm release [y/n] ?"
6971 read -r confirm
7072 if [ " $confirm " = " y" ]; then
71- python3 -m twine upload $ROOTDIR /dist/sonar_tools-* -py3-* .whl
73+ python3 -m twine upload $ROOTDIR /dist/sonar_tools-$version -py3-none-any .whl
7274 fi
7375fi
7476
7577if [ " $release_docker " = " 1" ]; then
76- docker buildx build --push --platform linux/amd64,linux/arm64 -t olivierkorach/sonar-tools:3.5 -t olivierkorach/sonar-tools:latest -f $ROOTDIR /release.Dockerfile .
78+ docker buildx build --push --platform linux/amd64,linux/arm64 -t olivierkorach/sonar-tools:$version -t olivierkorach/sonar-tools:latest -f $CONFDIR /release.Dockerfile $ROOTDIR
79+ cd $ROOTDIR && docker pushrm olivierkorach/sonar-tools
7780fi
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ COPY ./LICENSE .
3131COPY ./sonar/audit sonar/audit
3232
3333RUN pip install --upgrade pip \
34- && pip install sonar-tools==3.4
34+ && pip install sonar-tools==3.5
3535
3636USER ${USERNAME}
3737WORKDIR /home/${USERNAME}
Original file line number Diff line number Diff line change 6565
6666if [ " $release_docker " = " 1" ]; then
6767 docker buildx build --push --platform linux/amd64,linux/arm64 -t olivierkorach/sonar-migration:0.4 -t olivierkorach/sonar-migration:latest -f migration/release.Dockerfile $ROOTDIR
68+ cd $CONFDIR && docker pushrm olivierkorach/sonar-migration
6869fi
You can’t perform that action at this time.
0 commit comments