Skip to content

Commit

Permalink
Upgrade go orb
Browse files Browse the repository at this point in the history
Change convinient image base

Signed-off-by: Kemal Akkoyun <[email protected]>
  • Loading branch information
kakkoyun committed Mar 17, 2022
1 parent 294c72f commit 741c7ba
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: 2.1

orbs:
go: circleci/go@0.2.0
go: circleci/go@1.7.1

jobs:
test:
Expand All @@ -13,8 +13,7 @@ jobs:
type: boolean
default: true
docker:
- image: circleci/golang:<< parameters.go_version >>
working_directory: /go/src/github.com/prometheus/common
- image: cimg/go:<< parameters.go_version >>
steps:
- checkout
- when:
Expand All @@ -39,16 +38,15 @@ jobs:
type: boolean
default: true
docker:
- image: circleci/golang:<< parameters.go_version >>
working_directory: /go/src/github.com/prometheus/common/assets
- image: cimg/go:<< parameters.go_version >>
steps:
- checkout
- when:
condition: << parameters.use_gomod_cache >>
steps:
- go/load-cache:
key: v1-go<< parameters.go_version >>
- run: make test
- run: cd assets && make test
- when:
condition: << parameters.use_gomod_cache >>
steps:
Expand All @@ -64,8 +62,7 @@ jobs:
type: boolean
default: true
docker:
- image: circleci/golang:<< parameters.go_version >>
working_directory: /go/src/github.com/prometheus/common
- image: cimg/go:<< parameters.go_version >>
steps:
- checkout
- when:
Expand Down

0 comments on commit 741c7ba

Please sign in to comment.