Skip to content

Commit

Permalink
upgrade go
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Aug 24, 2023
1 parent 7d24cbd commit a61ffef
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ orbs:
executors:
golang:
docker:
- image: cimg/go:1.20
- image: cimg/go:1.21

commands:
make:
Expand All @@ -18,12 +18,12 @@ commands:
- attach_workspace:
at: /tmp/bin
- restore_cache:
name: "Restore source code cache"
name: 'Restore source code cache'
keys:
- go-src-v1-{{ .Revision }}
- checkout
- restore_cache:
name: "Restore go modules cache"
name: 'Restore go modules cache'
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
Expand All @@ -38,7 +38,7 @@ jobs:
steps:
- checkout
- restore_cache:
name: "Restore go modules cache"
name: 'Restore go modules cache'
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
Expand All @@ -48,18 +48,18 @@ jobs:
name: Build
command: make build
- run:
name: "Git garbage collection"
name: 'Git garbage collection'
command: git gc
- save_cache:
name: "Save go modules cache"
name: 'Save go modules cache'
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- '/go/pkg/mod'
- save_cache:
name: "Save source code cache"
name: 'Save source code cache'
key: go-src-v1-{{ .Revision }}
paths:
- ".git"
- '.git'

lint:
docker:
Expand Down Expand Up @@ -94,10 +94,10 @@ jobs:
- persist_to_workspace:
root: /tmp/workspace
paths:
- "profiles/*"
- 'profiles/*'
- store_artifacts:
path: /tmp/logs

test-system:
executor: golang
parallelism: 1
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
fi
- when:
condition:
equal: [ main, << pipeline.git.branch >> ]
equal: [main, << pipeline.git.branch >>]
steps:
- run:
name: Push application Docker image to docker hub
Expand Down

0 comments on commit a61ffef

Please sign in to comment.