File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 release :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v7
14- - uses : projectdiscovery/actions/setup/go@v1
13+ - name : " Check out code"
14+ uses : actions/checkout@v7
15+ with :
16+ fetch-depth : 0
17+ - name : " Set up Go"
18+ uses : projectdiscovery/actions/setup/go@v1
1519 - name : " Create release on GitHub"
1620 uses : goreleaser/goreleaser-action@v7
1721 env :
2024 DISCORD_WEBHOOK_ID : " ${{ secrets.DISCORD_WEBHOOK_ID }}"
2125 DISCORD_WEBHOOK_TOKEN : " ${{ secrets.DISCORD_WEBHOOK_TOKEN }}"
2226 with :
23- args : " release --rm-dist "
27+ args : " release --clean "
2428 version : latest
2529 workdir : .
Original file line number Diff line number Diff line change 1+ version : 2
2+
13before :
24 hooks :
35 - go mod tidy
@@ -16,9 +18,8 @@ builds:
1618 - arm64
1719
1820archives :
19- - format : zip
20- replacements :
21- darwin : macOS
21+ - formats : [zip]
22+ name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}'
2223
2324checksum :
2425 algorithm : sha256
Original file line number Diff line number Diff line change 1- FROM golang:1.27.0-alpine as build-env
2- RUN go install -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver@latest
1+ # Pinning apk package versions breaks the build once Alpine drops them; the base image tag is the pin.
2+ # hadolint global ignore=DL3018
3+ FROM golang:1.27.3-alpine AS build-env
4+ RUN apk add --no-cache git
5+ WORKDIR /app
6+ COPY . /app
7+ RUN go mod download && go build ./cmd/simplehttpserver
38
4- FROM alpine:latest
9+ FROM alpine:3.24
510RUN apk add --no-cache bind-tools ca-certificates
6- COPY --from=build-env /go/bin /simplehttpserver /usr/local/bin/simplehttpserver
7- ENTRYPOINT ["simplehttpserver" ]
11+ COPY --from=build-env /app /simplehttpserver /usr/local/bin/simplehttpserver
12+ ENTRYPOINT ["simplehttpserver" ]
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ SimpleHTTPserver is a go enhanced version of the well known python simplehttpser
3636
3737# Installing SimpleHTTPserver
3838
39- SimpleHTTPserver requires ** go1.17 +** to install successfully. Run the following command to get the repo -
39+ SimpleHTTPserver requires ** go1.26.10 +** to install successfully. Run the following command to get the repo -
4040
4141``` sh
4242go install -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver@latest
Original file line number Diff line number Diff line change 11module github.com/projectdiscovery/simplehttpserver
22
3- go 1.25.0
3+ go 1.26.10
44
55require (
66 github.com/fsnotify/fsnotify v1.10.1
You can’t perform that action at this time.
0 commit comments