mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 23:05:26 +00:00
workflow update
This commit is contained in:
parent
8db0276ba6
commit
a0c5cf1f0a
18
Dockerfile
18
Dockerfile
@ -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 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
|
FROM alpine:3.17.2
|
||||||
RUN apk add --no-cache bind-tools ca-certificates chromium
|
RUN apk -U upgrade --no-cache \
|
||||||
COPY --from=build-env /go/bin/nuclei /usr/local/bin/nuclei
|
&& apk add --no-cache bind-tools chromium ca-certificates
|
||||||
ENTRYPOINT ["nuclei"]
|
COPY --from=build-env /app/v2/nuclei /usr/local/bin/
|
||||||
|
|
||||||
|
ENTRYPOINT ["nuclei"]
|
||||||
@ -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
|
|
||||||
@ -2,14 +2,7 @@ before:
|
|||||||
hooks:
|
hooks:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
|
|
||||||
# release options (https://goreleaser.com/customization/release/)
|
|
||||||
|
|
||||||
release:
|
|
||||||
draft: true
|
|
||||||
prerelease: auto
|
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
|
|
||||||
- main: cmd/nuclei/main.go
|
- main: cmd/nuclei/main.go
|
||||||
binary: nuclei
|
binary: nuclei
|
||||||
id: nuclei-cli
|
id: nuclei-cli
|
||||||
@ -60,7 +53,7 @@ announce:
|
|||||||
enabled: true
|
enabled: true
|
||||||
channel: '#release'
|
channel: '#release'
|
||||||
username: GoReleaser
|
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:
|
discord:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user