Skip to content

Commit

Permalink
Replace checkout with git-shallow-clone (thanos-io#5829)
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Gera <matejgera@gmail.com>

Signed-off-by: Matej Gera <matejgera@gmail.com>
  • Loading branch information
matej-g authored and Nathaniel Graham committed May 18, 2023
1 parent e7849b5 commit 46d6a72
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: 2.1

orbs:
go: circleci/go@1.7.1
git-shallow-clone: guitarrapc/git-shallow-clone@2.4.0

executors:
golang:
Expand All @@ -19,7 +20,7 @@ jobs:
environment:
GO111MODULE: 'on'
steps:
- checkout
- git-shallow-clone/checkout
- go/mod-download-cached
- setup_remote_docker:
version: 20.10.12
Expand Down Expand Up @@ -58,7 +59,7 @@ jobs:
GOBIN: "/home/circleci/.go_workspace/go/bin"
PROMU_VERSION: "0.5.0"
steps:
- checkout
- git-shallow-clone/checkout
- run: mkdir -p ${GOBIN}
- run: curl -L "https://github.com/prometheus/promu/releases/download/v${PROMU_VERSION}/promu-${PROMU_VERSION}.$(go env GOOS)-$(go env GOARCH).tar.gz" | tar --strip-components=1 -xzf - -C ${GOBIN}
- run: mv -f ${GOBIN}/promu "${GOBIN}/promu-v${PROMU_VERSION}"
Expand All @@ -71,7 +72,7 @@ jobs:
publish_main:
executor: golang
steps:
- checkout
- git-shallow-clone/checkout
- go/mod-download-cached
- setup_remote_docker:
version: 20.10.12
Expand All @@ -93,7 +94,7 @@ jobs:
publish_release:
executor: golang
steps:
- checkout
- git-shallow-clone/checkout
- go/mod-download-cached
- setup_remote_docker:
version: 20.10.12
Expand Down

0 comments on commit 46d6a72

Please sign in to comment.