Skip to content
Snippets Groups Projects
Commit 2bd3febb authored by Lyuben Penkovski's avatar Lyuben Penkovski
Browse files

Update Go to 1.21.5 and replace go-watcher with guard

parent 86f5bf77
Branches
Tags
No related merge requests found
...@@ -14,7 +14,7 @@ linters: ...@@ -14,7 +14,7 @@ linters:
- golangci-lint run - golangci-lint run
unit tests: unit tests:
image: golang:1.21.3 image: golang:1.21.5
stage: test stage: test
script: script:
- go version - go version
...@@ -23,7 +23,7 @@ unit tests: ...@@ -23,7 +23,7 @@ unit tests:
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/' coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
govulncheck: govulncheck:
image: golang:1.21.3 image: golang:1.21.5
stage: test stage: test
script: script:
- go version - go version
......
...@@ -27,3 +27,4 @@ linters: ...@@ -27,3 +27,4 @@ linters:
- misspell - misspell
- staticcheck - staticcheck
- unused - unused
- gosimple
FROM golang:1.21.3-alpine3.17 as builder FROM golang:1.21.5-alpine3.17 as builder
RUN apk add git RUN apk add git
......
FROM golang:1.21.3 FROM golang:1.21.5
ENV GO111MODULE=on RUN go install github.com/ysmood/kit/cmd/guard@v0.25.11
RUN go install github.com/canthefason/go-watcher/cmd/watcher@v0.2.4
ADD . /go/src/gitlab.eclipse.org/eclipse/xfsc/tsa/infohub ADD . /go/src/gitlab.eclipse.org/eclipse/xfsc/tsa/infohub
WORKDIR /go/src/gitlab.eclipse.org/eclipse/xfsc/tsa/infohub WORKDIR /go/src/gitlab.eclipse.org/eclipse/xfsc/tsa/infohub
RUN go install -mod=vendor ./cmd/infohub/...
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["sh", "-c", "/go/bin/watcher -run gitlab.eclipse.org/eclipse/xfsc/tsa/infohub/cmd/infohub -watch gitlab.eclipse.org/eclipse/xfsc/tsa/infohub"] ENTRYPOINT ["sh", "-c", "/go/bin/guard -w '**/*.go' -- go run -mod=vendor ./cmd/infohub/..."]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment