-
Notifications
You must be signed in to change notification settings - Fork 7
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
1 parent
3395b13
commit e44d4f3
Showing
3 changed files
with
8 additions
and
8 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VERSION 0.7 | ||
VERSION 0.8 | ||
|
||
ARG --global BASE_IMAGE=golang:1.22-bookworm | ||
FROM $BASE_IMAGE | ||
|
@@ -32,8 +32,8 @@ go-test: | |
|
||
go-linter: | ||
FROM +go-base | ||
RUN go install golang.org/x/vuln/cmd/[email protected].1 \ | ||
&& go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2 | ||
RUN go install golang.org/x/vuln/cmd/[email protected].4 \ | ||
&& go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.1 | ||
COPY .golangci.yaml . | ||
RUN govulncheck ./... \ | ||
&& golangci-lint run ./... | ||
|
@@ -52,7 +52,7 @@ update-pkg-go-dev: | |
# compile-proto is used to compile cTrader Open API protobuf files. In case the 'protoc-gen-go' version changes, it's | ||
# recommended to run 'go mod tidy'. | ||
compile-proto: | ||
LOCALLY | ||
LOCALLY | ||
RUN rm -rf openapi | ||
FROM $BASE_IMAGE | ||
RUN apt-get update \ | ||
|
@@ -63,4 +63,4 @@ compile-proto: | |
RUN cd openapi-proto-messages \ | ||
&& protoc --go_out=. --go_opt=paths=source_relative *.proto \ | ||
&& find . ! \( -name '*.go' \) -delete | ||
SAVE ARTIFACT openapi-proto-messages AS LOCAL openapi | ||
SAVE ARTIFACT openapi-proto-messages AS LOCAL openapi |
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