Skip to content

Commit

Permalink
Pull latest docker image before docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus committed Mar 10, 2021
1 parent be2a775 commit 9bacafd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ build: fmt vet
$(foreach GOARCH,$(GOARCHs),$(shell GOARCH=$(GOARCH) go build -mod=vendor -ldflags="$(LDFLAGS)" -trimpath -o bin/$(APP_NAME)_$(GOOS)_$(GOARCH)$(SUFFIX) ./cmd/gof5))

docker:
docker pull golang:latest
docker run -ti --rm -e GOCACHE=/tmp -v $(PWD):/$(APP_NAME) -u $(UID):$(UID) --workdir /$(APP_NAME) golang:latest make

fmt:
Expand Down

0 comments on commit 9bacafd

Please sign in to comment.