Skip to content

Commit 3b91d05

Browse files
authored
Update README.md
1 parent 28db23e commit 3b91d05

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,9 @@ deploy:
5252
## Improvement ideas
5353
- Think about the best way to use a SSH key through a Dockerfile
5454
- Add snippets and templates for other tools
55-
- Add a retry scheme in the script : if your CI pipeline is launching parrallel deployment jobs using this image, then some ones can fail with message `cannot lock ref 'refs/heads/master'`
55+
- Add a retry scheme in the script : if your CI pipeline is launching parrallel deployment jobs (using this image), then some ones can fail with message `cannot lock ref 'refs/heads/master'` :
56+
- I tried but it's more complicated that it sounds in Bash (any help or insight will be really appreciated)
57+
- _But_ there are two workarounds in Gitlab CI that you can use :
58+
- add a `- sleep 5` just before the `- /main.sh` line
59+
- **better :** add a `retry: 2` in your deploy job
60+

0 commit comments

Comments
 (0)