circleci: migrate from unsupported base images to the recommended ones

See also https://github.com/CircleCI-Public/cimg-go/issues/158#issuecomment-1060586504 solution.
This commit is contained in:
AnnaShaleva 2022-03-17 16:44:49 +03:00
parent a137552b16
commit f50815d9b9

View file

@ -3,17 +3,17 @@ version: 2.1
executors: executors:
go1_15: go1_15:
docker: docker:
- image: circleci/golang:1.15 - image: cimg/go:1.15
environment: environment:
GO111MODULE: "on" GO111MODULE: "on"
go1_16: go1_16:
docker: docker:
- image: circleci/golang:1.16 - image: cimg/go:1.16
environment: environment:
GO111MODULE: "on" GO111MODULE: "on"
go1_17: go1_17:
docker: docker:
- image: circleci/golang:1.17 - image: cimg/go:1.17
commands: commands:
gomod: gomod:
@ -25,11 +25,11 @@ commands:
command: go mod download command: go mod download
- save_cache: - save_cache:
key: deps-{{ checksum "go.sum" }}-{{ checksum "go.sum" }} key: deps-{{ checksum "go.sum" }}-{{ checksum "go.sum" }}
paths: [/go/pkg/mod] paths: [/home/circleci/go/pkg/mod]
jobs: jobs:
lint: lint:
working_directory: /go/src/github.com/nspcc-dev/neo-go working_directory: /home/circleci/go/src/github.com/nspcc-dev/neo-go
executor: go1_17 executor: go1_17
steps: steps:
- checkout - checkout
@ -41,7 +41,7 @@ jobs:
make lint make lint
test_1_15: test_1_15:
working_directory: /go/src/github.com/nspcc-dev/neo-go working_directory: /home/circleci/go/src/github.com/nspcc-dev/neo-go
executor: go1_15 executor: go1_15
steps: steps:
- checkout - checkout
@ -51,7 +51,7 @@ jobs:
- run: go test -v -race ./... - run: go test -v -race ./...
test_1_16: test_1_16:
working_directory: /go/src/github.com/nspcc-dev/neo-go working_directory: /home/circleci/go/src/github.com/nspcc-dev/neo-go
executor: go1_16 executor: go1_16
steps: steps:
- checkout - checkout
@ -61,7 +61,7 @@ jobs:
- run: go test -v -race ./... - run: go test -v -race ./...
build_cli: build_cli:
working_directory: /go/src/github.com/nspcc-dev/neo-go working_directory: /home/circleci/go/src/github.com/nspcc-dev/neo-go
executor: go1_17 executor: go1_17
steps: steps:
- checkout - checkout
@ -72,7 +72,7 @@ jobs:
destination: / destination: /
build_image: build_image:
working_directory: /go/src/github.com/nspcc-dev/neo-go working_directory: /home/circleci/go/src/github.com/nspcc-dev/neo-go
executor: go1_17 executor: go1_17
docker: docker:
- image: golang:1-alpine - image: golang:1-alpine