This repository was archived by the owner on Jun 29, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +16
-36
lines changed
Expand file tree Collapse file tree 5 files changed +16
-36
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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+
16FROM 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
312ARG SONAR_VERSION=3.3.0.1492
413ARG SONAR_SCANNER_CLI=sonar-scanner-cli-${SONAR_VERSION}-linux
@@ -12,6 +21,4 @@ RUN unzip ${SONAR_SCANNER_CLI}.zip \
1221
1322ENV PATH $PATH:/bin/${SONAR_SCANNER}/bin
1423
15- COPY drone-sonarqube-node /bin/
16-
1724ENTRYPOINT /bin/drone-sonarqube-node
Original file line number Diff line number Diff line change 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
56A 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
2526Dependencies 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
3031GOOS=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
3637docker build -t committed/drone-sonarqube-node .
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o drone-sonarqube-node
4-
5- docker build -t committed/drone-sonarqube-node .
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ docker build -t committed/drone-sonarqube-node .
You can’t perform that action at this time.
0 commit comments