Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit fe3e059

Browse files
authored
Upgrde SonarQube to 7.9 LTS and sonar-scala to 7.7. Clean up the repo. (#15)
* Upgrde SonarQube to 7.9 LTS and sonar-scala to 7.7. Clean up the repo. * Update packages. * Replace wget with curl. * Add a job to update dockerhub readme.
1 parent bd1a455 commit fe3e059

File tree

60 files changed

+404
-948
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+404
-948
lines changed

.circleci/config.yml

Lines changed: 49 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
- run:
1010
name: Build
1111
command: |
12-
sudo apt-get install -y jq
12+
sudo apt-get update && sudo apt-get install -y jq
1313
export VERSION=`jq -r '.current.version' vars.json`
1414
export VERSION_LTS=`jq -r '.lts.version' vars.json`
15-
docker build -t mwizner/sonarqube-scala-plugins:$VERSION $VERSION
16-
docker build -t mwizner/sonarqube-scala-plugins:$VERSION-full $VERSION-full
17-
docker build -t mwizner/sonarqube-scala-plugins:$VERSION_LTS $VERSION_LTS
18-
docker build -t mwizner/sonarqube-scala-plugins:$VERSION_LTS-full $VERSION_LTS-full
15+
docker build -t mwizner/sonarqube-scala-plugins:$VERSION current
16+
docker build -t mwizner/sonarqube-scala-plugins:$VERSION-full current/full
17+
docker build -t mwizner/sonarqube-scala-plugins:$VERSION_LTS lts
18+
docker build -t mwizner/sonarqube-scala-plugins:$VERSION_LTS-full lts/full
1919
release:
2020
docker:
2121
- image: circleci/openjdk:8-jdk
@@ -34,7 +34,7 @@ jobs:
3434
- run:
3535
name: Release
3636
command: |
37-
sudo apt-get install -y jq
37+
sudo apt-get update && sudo apt-get install -y jq
3838
export VERSION=`jq -r '.current.version' vars.json`
3939
echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
4040
./release.sh
@@ -58,12 +58,38 @@ jobs:
5858
- run:
5959
name: Release LTS
6060
command: |
61-
sudo apt-get install -y jq
61+
sudo apt-get update && sudo apt-get install -y jq
6262
export VERSION=`jq -r '.lts.version' vars.json`
6363
echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
6464
./release-lts.sh
6565
git tag -a $VERSION -m "Release $VERSION."
6666
git push --tags
67+
update-dockerhub-readme:
68+
docker:
69+
- image: circleci/openjdk:8-jdk
70+
steps:
71+
- checkout
72+
- run:
73+
name: Update Dockerhub readme
74+
command: |
75+
sudo apt-get update && sudo apt-get install -y jq
76+
LOGIN_BODY="{\"username\": \"${DOCKER_USER}\", \"password\": \"${DOCKER_PASS}\"}"
77+
TOKEN=$(curl -s \
78+
-H "Content-Type: application/json" \
79+
-X POST \
80+
-d ${LOGIN_BODY} \
81+
https://hub.docker.com/v2/users/login | jq -r .token)
82+
RESPONSE_CODE=$(curl -s \
83+
--write-out "%{response_code}" \
84+
--output /dev/null \
85+
-H "Authorization: JWT ${TOKEN}" \
86+
-X PATCH --data-urlencode full_description@README_DOCKERHUB.md \
87+
https://cloud.docker.com/v2/repositories/mwizner/sonarqube-scala-plugins)
88+
if [[ $RESPONSE_CODE == "200" ]]; then
89+
exit 0
90+
else
91+
exit 1
92+
fi
6793
workflows:
6894
version: 2
6995
pr-build:
@@ -79,14 +105,20 @@ workflows:
79105
filters:
80106
branches:
81107
only: master
82-
- hold-lts:
83-
type: approval
108+
- release:
109+
requires:
110+
- hold
84111
filters:
85112
branches:
86113
only: master
87-
- release:
114+
- update-dockerhub-readme:
88115
requires:
89-
- hold
116+
- release
117+
filters:
118+
branches:
119+
only: master
120+
- hold-lts:
121+
type: approval
90122
filters:
91123
branches:
92124
only: master
@@ -96,3 +128,9 @@ workflows:
96128
filters:
97129
branches:
98130
only: master
131+
- update-dockerhub-readme-lts:
132+
requires:
133+
- release-lts
134+
filters:
135+
branches:
136+
only: master

2.1.0-full/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.1.0/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.10.0-full/Dockerfile

Lines changed: 0 additions & 12 deletions
This file was deleted.

2.10.0/Dockerfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

2.11.0-full/Dockerfile

Lines changed: 0 additions & 12 deletions
This file was deleted.

2.2.0-full/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.2.0/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.2.1-full/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.2.1/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.3.0-full/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.3.0/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.4.0-full/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.4.0/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.5.0-full/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.5.0/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.6.0-full/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

2.6.0/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)