mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
ci use taged images to ensure go version
This commit is contained in:
parent
ab1c26163d
commit
0c5c11d42c
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
# use vendor to cache dependencies
|
# use vendor to cache dependencies
|
||||||
vendor:
|
vendor:
|
||||||
image: golang
|
image: golang:1.18
|
||||||
commands:
|
commands:
|
||||||
- go mod vendor
|
- go mod vendor
|
||||||
|
|
||||||
|
@ -14,11 +14,11 @@ pipeline:
|
||||||
- golangci-lint run --timeout 5m
|
- golangci-lint run --timeout 5m
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: golang
|
image: golang:1.18
|
||||||
commands:
|
commands:
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: golang
|
image: golang:1.18
|
||||||
commands:
|
commands:
|
||||||
- go build
|
- go build
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue