Skip to content

Commit

Permalink
build: update to use go1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
chenrui333 committed Sep 9, 2021
1 parent 6d8c2e8 commit 91c252a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.17

- name: Install libpcap-dev
run: sudo apt install libpcap-dev
Expand All @@ -27,4 +27,4 @@ jobs:

- name: Build
run: go build .
working-directory: v2/cmd/naabu/
working-directory: v2/cmd/naabu/
6 changes: 3 additions & 3 deletions .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
- name: Install Dependences
run: brew install libpcap
- name: Run GoReleaser
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
- name: Install Dependences
run: sudo apt install libpcap-dev

Expand All @@ -61,7 +61,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM golang:1.16.5-alpine AS builder
FROM golang:1.17.0-alpine AS builder
RUN apk add build-base libpcap-dev
RUN GO111MODULE=on go get -v github.com/projectdiscovery/naabu/v2/cmd/naabu

FROM alpine
FROM alpine:3.14
RUN apk add nmap libpcap-dev bind-tools ca-certificates
COPY --from=builder /go/bin/naabu /usr/local/bin/naabu
ENTRYPOINT ["naabu"]

0 comments on commit 91c252a

Please sign in to comment.