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

Commit 3724ca8

Browse files
committed
Add PR build job.
1 parent d9a6acb commit 3724ca8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.circleci/config.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
version: 2
22
jobs:
3+
build:
4+
docker:
5+
- image: circleci/openjdk:8-jdk
6+
steps:
7+
- checkout
8+
- setup_remote_docker
9+
- run:
10+
name: Build
11+
command: |
12+
sudo apt-get install -y jq
13+
export VERSION=`jq -r '.version' vars.js`
14+
export VERSION_LTS=`jq -r '.ltsVersion' vars.js`
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
319
release:
420
docker:
521
- image: circleci/openjdk:8-jdk
@@ -26,6 +42,12 @@ jobs:
2642
git push --tags
2743
workflows:
2844
version: 2
45+
pr-build:
46+
jobs:
47+
- build:
48+
filters:
49+
branches:
50+
ignore: master
2951
release:
3052
jobs:
3153
- hold:

0 commit comments

Comments
 (0)