Skip to content

Commit

Permalink
chore: reorg directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
nilic committed Jul 20, 2023
1 parent f17b0fa commit 37a2566
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
builds:
- main: ./cmd
- main: ./cmd/hntop
binary: hntop
env:
- CGO_ENABLED=0
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WORKDIR /build
COPY go.* ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X main.version=$BUILD_VERSION" -a -o hntop ./cmd
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X main.version=$BUILD_VERSION" -a -o hntop ./cmd/hntop

# generate clean, final image for end users
FROM alpine:3.18
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ audit:
.PHONY: build
build:
go mod verify
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X main.version=9.9.9" -a -o ./bin/hntop ./cmd
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X main.version=9.9.9" -a -o ./bin/hntop ./cmd/hntop

## run: run the cmd application
.PHONY: run
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 37a2566

Please sign in to comment.