Skip to content
This repository was archived by the owner on Jun 29, 2021. It is now read-only.

Commit 78af148

Browse files
Merge pull request #1 from commitd/docker-build
Change build to dockerhub
2 parents 0328335 + 95c04b6 commit 78af148

File tree

5 files changed

+16
-36
lines changed

5 files changed

+16
-36
lines changed

.drone.yml

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

Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1+
FROM golang:1.13 as builder
2+
ADD . /src
3+
WORKDIR /src
4+
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o drone-sonarqube-node
5+
16
FROM timbru31/java-node:latest
7+
COPY --from=builder /src/drone-sonarqube-node /bin/
8+
9+
LABEL maintainer="Committed Software <[email protected]>"
10+
LABEL description="Drone CI plugin for sonarqube quality testing on node"
211

312
ARG SONAR_VERSION=3.3.0.1492
413
ARG SONAR_SCANNER_CLI=sonar-scanner-cli-${SONAR_VERSION}-linux
@@ -12,6 +21,4 @@ RUN unzip ${SONAR_SCANNER_CLI}.zip \
1221

1322
ENV PATH $PATH:/bin/${SONAR_SCANNER}/bin
1423

15-
COPY drone-sonarqube-node /bin/
16-
1724
ENTRYPOINT /bin/drone-sonarqube-node

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# drone-sonarqube-node
22

3-
[![Build Status](https://drone.committed.software/api/badges/commitd/drone-sonarqube-node/status.svg)](https://drone.committed.software/commitd/drone-sonarqube-node) [![Docker Pulls](https://img.shields.io/docker/pulls/committed/drone-sonarqube-node.svg?style=flat)](https://hub.docker.com/r/committed/drone-sonarqube-node)
3+
[![Docker Build Status](https://img.shields.io/docker/cloud/build/committed/drone-sonarqube-node?style=flat-square)](https://hub.docker.com/r/committed/drone-sonarqube-node)
4+
[![Docker Pulls](https://img.shields.io/docker/pulls/committed/drone-sonarqube-node?style=flat-square)](https://hub.docker.com/r/committed/drone-sonarqube-node)
45

56
A plugin for Drone CI to run SonarQube analysis on node, JavaScript and TypeScript projects.
67

@@ -24,13 +25,13 @@ For full parameter details see [DOCS.md](DOCS.md).
2425
2526
Dependencies are managed with `dep` and stored in the vendor directory
2627

27-
To build the go binary file:
28+
To build the go binary file (`build.sh`):
2829

2930
```bash
3031
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o drone-sonarqube-node
3132
```
3233

33-
To build the docker image:
34+
To build the docker image (`docker.sh`):
3435

3536
```bash
3637
docker build -t committed/drone-sonarqube-node .

build.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
#!/bin/bash
22

33
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o drone-sonarqube-node
4-
5-
docker build -t committed/drone-sonarqube-node .

docker.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
docker build -t committed/drone-sonarqube-node .

0 commit comments

Comments
 (0)