Skip to content

Commit

Permalink
use old config
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdv2429 committed Aug 25, 2023
1 parent f921f31 commit 5dd3211
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 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.21
- image: cimg/go:1.20

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,22 +48,22 @@ 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:
- image: golangci/golangci-lint:v1.53.3
- image: golangci/golangci-lint:v1.52.2
steps:
- checkout
- run:
Expand Down Expand Up @@ -94,13 +94,14 @@ jobs:
- persist_to_workspace:
root: /tmp/workspace
paths:
- 'profiles/*'
- "profiles/*"
- store_artifacts:
path: /tmp/logs

test-system:
executor: golang
parallelism: 1
resource_class: xlarge
steps:
- attach_workspace:
at: /tmp/workspace
Expand Down Expand Up @@ -189,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 5dd3211

Please sign in to comment.