update changes

This commit is contained in:
ale 2024-09-18 01:35:05 +02:00
parent 68ba2b9418
commit c5531821cd

View File

@ -1,18 +1,26 @@
FROM golang:1.13.4-alpine as build FROM golang:1.15-alpine as build
RUN mkdir -p /go/src/github.com/aosapps/drone-sonar-plugin RUN mkdir -p /go/src/github.com/aosapps/drone-sonar-plugin
WORKDIR /go/src/github.com/aosapps/drone-sonar-plugin WORKDIR /go/src/github.com/aosapps/drone-sonar-plugin
COPY *.go ./ COPY *.go ./
COPY vendor ./vendor/ COPY vendor ./vendor/
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o drone-sonar RUN GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o drone-sonar
FROM openjdk:11.0.8-jre FROM openjdk:17-slim-bullseye
ARG SONAR_VERSION=4.5.0.2216 ARG SONAR_VERSION=5.0.1.3006
ARG SONAR_SCANNER_CLI=sonar-scanner-cli-${SONAR_VERSION} ARG SONAR_SCANNER_CLI=sonar-scanner-cli-${SONAR_VERSION}
ARG SONAR_SCANNER=sonar-scanner-${SONAR_VERSION} ARG SONAR_SCANNER=sonar-scanner-${SONAR_VERSION}
ARG NODEJS_VERSION=20
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y nodejs curl \ && apt-get install -y curl gpg unzip \
&& apt-get clean
RUN echo "deb https://deb.nodesource.com/node_${NODEJS_VERSION}.x bookworm main" | tee /etc/apt/sources.list.d/nodesource.list
RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/nodesource.gpg >/dev/null
RUN apt-get update \
&& apt-get install -y nodejs \
&& apt-get clean && apt-get clean
COPY --from=build /go/src/github.com/aosapps/drone-sonar-plugin/drone-sonar /bin/ COPY --from=build /go/src/github.com/aosapps/drone-sonar-plugin/drone-sonar /bin/