Use git clone --depth (#26976)
Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
This commit is contained in:
@@ -187,7 +187,7 @@ jobs:
|
||||
- << pipeline.parameters.ssh-fingerprint >>
|
||||
- run:
|
||||
name: Checkout provisioning files
|
||||
command: git clone git@github.com:grafana/plugin-provisioning.git
|
||||
command: git clone --depth 1 git@github.com:grafana/plugin-provisioning.git
|
||||
- run:
|
||||
name: Prepare task output dir
|
||||
command: |
|
||||
|
||||
@@ -49,7 +49,7 @@ chmod +x /usr/local/bin/grabpl
|
||||
apk add --no-cache git
|
||||
# Install Mage
|
||||
mkdir -pv /tmp/mage $HOME/go/bin
|
||||
git clone https://github.com/magefile/mage.git /tmp/mage
|
||||
git clone --depth 1 https://github.com/magefile/mage.git /tmp/mage
|
||||
cd /tmp/mage && go run bootstrap.go
|
||||
mv $HOME/go/bin/mage /usr/local/bin
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ chmod +x /usr/local/bin/grabpl
|
||||
|
||||
# Install Mage
|
||||
mkdir -pv /tmp/mage $HOME/go/bin
|
||||
git clone https://github.com/magefile/mage.git /tmp/mage
|
||||
git clone --depth 1 https://github.com/magefile/mage.git /tmp/mage
|
||||
pushd /tmp/mage && go run bootstrap.go && popd
|
||||
mv $HOME/go/bin/mage /usr/local/bin
|
||||
# Cleanup after yourself
|
||||
|
||||
@@ -32,7 +32,7 @@ chmod +x /usr/local/bin/grabpl
|
||||
|
||||
# Install Mage
|
||||
mkdir -pv /tmp/mage $HOME/go/bin
|
||||
git clone https://github.com/magefile/mage.git /tmp/mage
|
||||
git clone --depth 1 https://github.com/magefile/mage.git /tmp/mage
|
||||
pushd /tmp/mage && go run bootstrap.go && popd
|
||||
mv $HOME/go/bin/mage /usr/local/bin
|
||||
# Cleanup after yourself
|
||||
|
||||
Reference in New Issue
Block a user