diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 80f88f7..14f18ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ stages: - test - build -format: +check-format: image: golang:latest stage: test before_script: @@ -17,8 +17,10 @@ format: - go fmt $(go list ./... | grep -v /vendor/) - go vet $(go list ./... | grep -v /vendor/) - go test -race $(go list ./... | grep -v /vendor/) + only: + - merge_requests -gosec: +check-gosec: image: golang:latest before_script: - mkdir -p $GOPATH/src/$(dirname $REPO_NAME) @@ -28,6 +30,8 @@ gosec: - go install github.com/securego/gosec/v2/cmd/gosec@latest - go get -v -d . - gosec ./... + only: + - merge_requests docker-build-prod-latest: image: ezkrg/buildx