mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
update to Go 1.13
This commit is contained in:
parent
7d05fa5f08
commit
55c8de20ad
3 changed files with 7 additions and 4 deletions
|
@ -13,6 +13,7 @@ variables:
|
||||||
RABBITMQ_DEFAULT_PASS: villas
|
RABBITMQ_DEFAULT_PASS: villas
|
||||||
AMQPURL: 'amqp://villas:villas@rabbitmq:5672'
|
AMQPURL: 'amqp://villas:villas@rabbitmq:5672'
|
||||||
PORT: 4000
|
PORT: 4000
|
||||||
|
GO_IMAGE: golang:1.13-buster
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
@ -26,7 +27,7 @@ build:backend:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
image: golang:1.12.9-buster
|
image: ${GO_IMAGE}
|
||||||
script:
|
script:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
- go install github.com/swaggo/swag/cmd/swag
|
- go install github.com/swaggo/swag/cmd/swag
|
||||||
|
@ -59,7 +60,7 @@ test:gotest:
|
||||||
MODE: test
|
MODE: test
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
image: golang:1.12.9-buster
|
image: ${GO_IMAGE}
|
||||||
script:
|
script:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
- go test $(go list ./... )
|
- go test $(go list ./... )
|
||||||
|
@ -81,7 +82,7 @@ test:database:
|
||||||
DB_PASS: ${POSTGRES_PASSWORD}
|
DB_PASS: ${POSTGRES_PASSWORD}
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
image: golang:1.12.9-buster
|
image: ${GO_IMAGE}
|
||||||
script:
|
script:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
- cd ${TEST_FOLDER}
|
- cd ${TEST_FOLDER}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.12.9-buster AS builder
|
FROM golang:1.13-buster AS builder
|
||||||
|
|
||||||
RUN mkdir /build
|
RUN mkdir /build
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -22,3 +22,5 @@ require (
|
||||||
gopkg.in/go-playground/validator.v9 v9.30.0
|
gopkg.in/go-playground/validator.v9 v9.30.0
|
||||||
gopkg.in/ini.v1 v1.51.0 // indirect
|
gopkg.in/ini.v1 v1.51.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go 1.13
|
||||||
|
|
Loading…
Add table
Reference in a new issue