Skip to content

Commit 448508e

Browse files
fix push retry (#112)
1 parent 62b907d commit 448508e

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.0.104
1+
VERSION=v0.0.105
22
OUT_DIR=dist
33
YEAR?=$(shell date +"%Y")
44

docs/releases/release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cf version
2020
### Linux
2121
```bash
2222
# download and extract the binary
23-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.104/cf-linux-amd64.tar.gz | tar zx
23+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.105/cf-linux-amd64.tar.gz | tar zx
2424

2525
# move the binary to your $PATH
2626
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -32,7 +32,7 @@ cf version
3232
### Mac
3333
```bash
3434
# download and extract the binary
35-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.104/cf-darwin-amd64.tar.gz | tar zx
35+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.105/cf-darwin-amd64.tar.gz | tar zx
3636

3737
# move the binary to your $PATH
3838
mv ./cf-darwin-amd64 /usr/local/bin/cf

manifests/runtime.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
namespace: "{{ namespace }}"
66
spec:
77
defVersion: 1.0.0
8-
version: 0.0.104
8+
version: 0.0.105
99
bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd
1010
components:
1111
- name: events

pkg/util/aputil/aputil.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"context"
1919
"errors"
2020
"io"
21+
"time"
2122

2223
"github.com/argoproj-labs/argocd-autopilot/pkg/git"
2324
aplog "github.com/argoproj-labs/argocd-autopilot/pkg/log"
@@ -79,7 +80,9 @@ func PushWithMessage(ctx context.Context, r git.Repository, msg string, progress
7980
log.G(ctx).WithFields(log.Fields{
8081
"retry": try,
8182
"err": err.Error(),
82-
}).Debug("failed to push to repository")
83+
}).Warn("Failed to push to repository, trying again in 3 seconds...")
84+
85+
time.Sleep(time.Second * 3)
8386
}
8487

8588
return err

0 commit comments

Comments
 (0)