diff --git a/.releaser-ci.yml b/.releaser-ci.yml index 034ff87..33a040f 100644 --- a/.releaser-ci.yml +++ b/.releaser-ci.yml @@ -11,8 +11,8 @@ check: - golangci-lint run --build-tags private,solution ./... #- go test -v -tags private,solution ./... #- go test -v -race -tags private,solution ./... - - go test $(go list -tags private,solution ./... | grep -v /dockertest | grep -v /foolsday3) -tags private,solution -v ./... - - go test $(go list -tags private,solution ./... | grep -v /dockertest) -tags private,solution -v -race ./... + - sudo -u nobody go test $(go list -tags private,solution ./... | grep -v /dockertest | grep -v /foolsday3) -tags private,solution -v ./... + - sudo -u nobody go test $(go list -tags private,solution ./... | grep -v /dockertest) -tags private,solution -v -race ./... rebuild-base-image: tags: diff --git a/build.docker b/build.docker index fdec512..5dc4cec 100644 --- a/build.docker +++ b/build.docker @@ -1,7 +1,7 @@ FROM golang:1.17 RUN apt-get update && apt-get install -y \ - rsync libssl-dev postgresql \ + rsync libssl-dev postgresql sudo \ && rm -rf /var/lib/apt/lists/* RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.44.0