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 58a61fe
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 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 @@ -23,7 +22,7 @@ jobs:
- go/load-cache:
key: v1-go<< parameters.go_version >>
- run: make test
- run: cd sigv4 && make test
- run: make -C sigv4 test
- when:
condition: << parameters.use_gomod_cache >>
steps:
Expand All @@ -39,23 +38,22 @@ 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: make -C assets test
- when:
condition: << parameters.use_gomod_cache >>
steps:
- go/save-cache:
key: v1-go<< parameters.go_version >>
- store_test_results:
path: ../test-results
path: test-results
style:
parameters:
go_version:
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 All @@ -74,8 +71,8 @@ jobs:
- go/load-cache:
key: v1-go<< parameters.go_version >>
- run: make style
- run: cd sigv4 && make style
- run: cd assets && make style
- run: make -C sigv4 style
- run: make -C assets style
- when:
condition: << parameters.use_gomod_cache >>
steps:
Expand Down

0 comments on commit 58a61fe

Please sign in to comment.