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

Commit d9a6acb

Browse files
committed
Add circleCI.
1 parent 99a36d7 commit d9a6acb

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

.circleci/config.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
version: 2
2+
jobs:
3+
release:
4+
docker:
5+
- image: circleci/openjdk:8-jdk
6+
steps:
7+
- checkout
8+
- add_ssh_keys:
9+
fingerprints:
10+
- "31:63:53:c4:af:b7:2c:a1:62:8e:b0:11:83:f8:62:eb"
11+
- run:
12+
name: Set up git
13+
command: |
14+
git config --global user.name "CircleCI"
15+
git config --global user.email "[email protected]"
16+
ssh-keyscan -T 15 github.com >> ~/.ssh/known_hosts
17+
- setup_remote_docker
18+
- run:
19+
name: Release
20+
command: |
21+
sudo apt-get install -y jq
22+
export VERSION=`jq -r '.version' vars.js`
23+
docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
24+
./release.sh
25+
git tag -a $VERSION -m "Release $VERSION."
26+
git push --tags
27+
workflows:
28+
version: 2
29+
release:
30+
jobs:
31+
- hold:
32+
type: approval
33+
filters:
34+
branches:
35+
only: master
36+
- release:
37+
requires:
38+
- hold
39+
filters:
40+
branches:
41+
only: master

release.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/usr/bin/env bash
22
set -eu
33

4-
export VERSION=3.2.1
5-
64
# Build
75
docker build -t mwizner/sonarqube-scala-plugins:$VERSION -t mwizner/sonarqube-scala-plugins:latest $VERSION
86
docker build -t mwizner/sonarqube-scala-plugins:$VERSION-full $VERSION-full

0 commit comments

Comments
 (0)