Skip to content

Commit 4e0396d

Browse files
Merge #434
434: More details regarding custom registries r=DilumAluthge a=SebastianM-C I've added some notes documenting some of the configuration details that I've recently learn about on the #github-actions slack channel. Co-authored-by: Sebastian Micluța-Câmpeanu <[email protected]>
2 parents ea15679 + 71e39d5 commit 4e0396d

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

docs/src/private-registries.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ After you have the registry configured, you can setup CI using RegistryCI by fol
1010

1111
## Basic configuration
1212

13-
You will first need to copy the `.ci` folder in the root of the General registry to the root of your own registry. This folder contains some resources required for the RegistryCI package to work and update itself.
13+
You will first need to copy the `.ci` folder in the root of the General registry to the root of your own registry. This folder contains some resources required for the RegistryCI package to work and update itself. If you do not need AutoMerge support, there is now need to copy the
14+
`stopwatch.jl` file in the `.ci` folder.
1415

1516
Next, you will need to copy the `ci.yml` and `update_manifest.yml` workflow files.
1617

@@ -68,3 +69,21 @@ Most importantly, the following should be changed
6869
registry = "MyOrg/MyRegistry",
6970
authorized_authors = String["TrustedUser"],
7071
```
72+
73+
You will also have to make the following change in `.ci/stopwatch.jl`
74+
75+
```diff
76+
- registry = GitHub.Repo("JuliaRegistries/General")
77+
+ registry = GitHub.Repo("MyOrg/MyRegistry")
78+
```
79+
80+
## Note regarding private registries
81+
82+
In the case of a private registry, you might get permission errors when executing the `instantiate.sh` script.
83+
In that case you will also have to add the following
84+
```diff
85+
- run: chmod 400 .ci/Project.toml
86+
- run: chmod 400 .ci/Manifest.toml
87+
+ - run: chmod +x .ci/instantiate.sh
88+
```
89+
in `ci.yml` and also `TagBotTriggers.yml` and `automerge.yml` (in which the above appears twice) files if those features are used.

0 commit comments

Comments
 (0)