Add linter stage to pipeline
This commit is contained in:
parent
3f98c0171c
commit
5dca8b63ac
@ -1,12 +1,8 @@
|
||||
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/golang as build
|
||||
WORKDIR /app
|
||||
RUN apk add git
|
||||
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/golang:main.3862 as build
|
||||
COPY . .
|
||||
RUN go mod download
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o trashlog
|
||||
|
||||
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/alpine as prod
|
||||
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/alpine:main.3862 as prod
|
||||
COPY --from=build /app/trashlog .
|
||||
RUN apk add --no-cache ca-certificates
|
||||
RUN apk add tzdata
|
||||
CMD ["/trashlog"]
|
||||
|
10
Makefile
10
Makefile
@ -35,13 +35,3 @@ ifneq ($(shell dpkg --get-selections | grep "^docker-ce\s" | wc -l),1)
|
||||
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
|
||||
sudo usermod -aG docker ${USER}
|
||||
endif
|
||||
ifneq ($(shell dpkg --get-selections | grep "^clickhouse-server\s" | wc -l),1)
|
||||
sudo apt-get install -y apt-transport-https ca-certificates dirmngr
|
||||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 8919F6BD2B48D754
|
||||
echo "deb https://packages.clickhouse.com/deb stable main" | sudo tee /etc/apt/sources.list.d/clickhouse.list
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y clickhouse-server clickhouse-client
|
||||
sudo service clickhouse-server start
|
||||
endif
|
||||
draw_ports:
|
||||
ssh -L 9999:127.0.0.1:8123 squiz -N -f
|
||||
|
@ -139,11 +139,6 @@ func New(ctx context.Context, opts interface{}, ver appInit.Version) (appInit.Co
|
||||
return nil, err
|
||||
}
|
||||
|
||||
log.With(map[string]string{
|
||||
"test": "test2",
|
||||
"test1": "test3",
|
||||
})
|
||||
|
||||
sinkSvc := sink.New(log, logStore)
|
||||
|
||||
var grpcOpts []grpc.ServerOption
|
||||
|
Loading…
Reference in New Issue
Block a user