Skip to content

Commit

Permalink
Cleanup makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
msoap committed Oct 10, 2021
1 parent 03fdb48 commit d94ea11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build:
go build .

update-from-github:
go get -u github.com/msoap/$(APP_NAME)
go install github.com/msoap/$(APP_NAME)@latest

test:
go test -race -cover -v ./...
Expand All @@ -25,7 +25,6 @@ gometalinter:
gometalinter --vendor --cyclo-over=25 --line-length=150 --dupl-threshold=150 --min-occurrences=3 --enable=misspell --deadline=10m --exclude=SA1022

build-docker-image:
docker run --rm -v $$PWD:/go/src/$(APP_NAME) -w /go/src/$(APP_NAME) golang:alpine sh -c "apk add --no-cache git && go get ./... && go build -ldflags='-w -s' -o $(APP_NAME)"
docker build -t msoap/$(APP_NAME):latest .
rm -f $(APP_NAME)

Expand Down

0 comments on commit d94ea11

Please sign in to comment.