-
Notifications
You must be signed in to change notification settings - Fork 17
Add localregistry input option #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
30933ee
Add localregistry input option
lukasgrunwald 8de7feb
Backward compatible keyword syntax and Wrap new code in VERSION > 1.5
lukasgrunwald 5bf4e09
Update Interface&README, add git_cli amd remove token flag
lukasgrunwald efd15db
Update README.md
lukasgrunwald 19bc2c8
Update action.yml
lukasgrunwald 19bfbf7
Print warn mesasge if git_cli = true with Julia<1.7.
lukasgrunwald 3950891
Add `::notice::` formatting
SaschaMann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,29 @@ is already set. If you want another registry flavor (i.e. `conservative`) this | |
should be defined in the `env:` section of the relevant workflow or step. See | ||
[Registry flavors](https://pkgdocs.julialang.org/dev/registries/#Registry-flavors) | ||
for more information. | ||
|
||
### Adding Local Registries | ||
|
||
Personal registries, e.g. created with [LocalRegistry.jl](https://github.com/GunnarFarneback/LocalRegistry.jl), can be added to the CI using the `localregistry` input option. If the personal registry as well as packages needed in the current project are public, no additional setup is required if the registry url is specified in https-format. | ||
|
||
If the registry contains private packages, or is itself private, the ssh protocol should to be used. The user has to provide the corresponding private SSH-keys to the `ssh-agent` to access packages and registry. This can be conveniently done using the [webfactory/ssh-agent](https://github.com/webfactory/ssh-agent) action. A snippet illustrating the usage of (private) personal registries is shown below | ||
|
||
```yaml | ||
... | ||
# Adding private SSH keys (only necessary for accessing private packages and/or | ||
# when providing Registry-link in ssh format) | ||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: | | ||
${{ secrets.PRIVATE_DEPLOY_KEY }} | ||
${{ secrets.PRIVATE_DEPLOY_KEY2 }} | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
with: | ||
localregistry: | | ||
https://github.com/username/PersonalRegistry.git | ||
[email protected]:username2/PersonalRegistry2.git | ||
git_cli: false # = JULIA_PKG_USE_CLI_GIT. Options: true | false (default) | ||
... | ||
``` | ||
|
||
For Julia 1.7 and above, the `git_cli` option can be used to set the `JULIA_PKG_USE_CLI_GIT` [environment flag](https://docs.julialang.org/en/v1/manual/environment-variables/), for additional control of the SSH configuration used by `Pkg` to add/dev packages. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.