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

Merge branch 'update-go-version' into 'main'

Update Go to 1.21.5 and replace go-watcher with guard

See merge request eclipse/xfsc/tsa/infohub!15
parents 86f5bf77 2bd3febb
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ linters:
- golangci-lint run
unit tests:
image: golang:1.21.3
image: golang:1.21.5
stage: test
script:
- go version
......@@ -23,7 +23,7 @@ unit tests:
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
govulncheck:
image: golang:1.21.3
image: golang:1.21.5
stage: test
script:
- go version
......
......@@ -27,3 +27,4 @@ linters:
- misspell
- staticcheck
- unused
- gosimple
FROM golang:1.21.3-alpine3.17 as builder
FROM golang:1.21.5-alpine3.17 as builder
RUN apk add git
......
FROM golang:1.21.3
FROM golang:1.21.5
ENV GO111MODULE=on
RUN go install github.com/canthefason/go-watcher/cmd/watcher@v0.2.4
RUN go install github.com/ysmood/kit/cmd/guard@v0.25.11
ADD . /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
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.
Finish editing this message first!
Please register or to comment