workflow update

This commit is contained in:
sandeep 2023-03-16 23:59:14 +05:30
parent 8db0276ba6
commit a0c5cf1f0a
3 changed files with 14 additions and 30 deletions

View File

@ -1,8 +1,16 @@
FROM golang:1.20.2-alpine as build-env
# Build
FROM golang:1.20.1-alpine AS build-env
RUN apk add build-base
RUN go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
WORKDIR /app
COPY . /app
WORKDIR /app/v2
RUN go mod download
RUN go build ./cmd/nuclei
# Release
FROM alpine:3.17.2
RUN apk add --no-cache bind-tools ca-certificates chromium
COPY --from=build-env /go/bin/nuclei /usr/local/bin/nuclei
ENTRYPOINT ["nuclei"]
RUN apk -U upgrade --no-cache \
&& apk add --no-cache bind-tools chromium ca-certificates
COPY --from=build-env /app/v2/nuclei /usr/local/bin/
ENTRYPOINT ["nuclei"]

View File

@ -1,17 +0,0 @@
sonar.projectKey=projectdiscovery_nuclei
sonar.organization=projectdiscovery
# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=dnsx
#sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=v2/
sonar.tests=v2/
sonar.test.inclusions=**/*_test.go
sonar.exclusions=v2/pkg/protocols/common/helpers/deserialization/testdata/*.java
sonar.go.coverage.reportPaths=v2/cov.out
sonar.externalIssuesReportPaths=v2/report.json
# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

View File

@ -2,14 +2,7 @@ before:
hooks:
- go mod tidy
# release options (https://goreleaser.com/customization/release/)
release:
draft: true
prerelease: auto
builds:
- main: cmd/nuclei/main.go
binary: nuclei
id: nuclei-cli
@ -60,7 +53,7 @@ announce:
enabled: true
channel: '#release'
username: GoReleaser
message_template: '**New Release: {{ .ProjectName }} {{.Tag}}** is published! Check it out at {{ .ReleaseURL }}'
message_template: 'New Release: {{ .ProjectName }} {{.Tag}} is published! Check it out at {{ .ReleaseURL }}'
discord:
enabled: true