-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
38 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ jobs: | |
go-version: '1.19' | ||
|
||
- name: Test | ||
run: make action | ||
run: make build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM golang:1.19 AS builder | ||
|
||
WORKDIR /mnt/engine | ||
|
||
COPY . . | ||
|
||
RUN make build | ||
|
||
FROM golang:1.19 | ||
|
||
WORKDIR /mnt/engine | ||
|
||
COPY --from=builder /mnt/engine/build . | ||
|
||
CMD ["./bin/boilerplate"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,13 @@ OUTDIR := $(HOMEDIR)/build | |
BINDIR := $(OUTDIR)/bin | ||
GO := go | ||
GOPATH := $(shell $(GO) env GOPATH) | ||
|
||
GOBIN := $(GOPATH)/bin | ||
|
||
.PHONY: all | ||
all: prepare compile test package | ||
|
||
.PHONY: build-in-docker | ||
build-in-docker: prepare compile package | ||
all: prepare compile check test package | ||
|
||
.PHONY: action | ||
action: prepare compile | ||
.PHONY: build | ||
build: prepare compile check package | ||
|
||
.PHONY: prepare | ||
prepare: prepare-dep | ||
|
@@ -77,7 +73,10 @@ coverage: set-env | |
$(GO) tool cover -html=coverage.cov -o coverage.html | ||
|
||
.PHONY: check | ||
check: golangci-lint | ||
check: check-tools golangci-lint | ||
|
||
.PHONY: fix | ||
fix: check-tools golangci-lint-fix | ||
|
||
check-tools: set-env | ||
$(GO) install -v "github.com/golangci/golangci-lint/cmd/[email protected]" | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters