Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julia-actions/add-julia-registry
Add a private Julia registry
https://github.com/julia-actions/add-julia-registry
Last synced: about 1 month ago
JSON representation
Add a private Julia registry
- Host: GitHub
- URL: https://github.com/julia-actions/add-julia-registry
- Owner: julia-actions
- License: mit
- Created: 2021-07-18T00:27:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-07T14:58:04.000Z (8 months ago)
- Last Synced: 2024-08-10T18:44:05.844Z (4 months ago)
- Language: JavaScript
- Size: 212 KB
- Stars: 7
- Watchers: 5
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Add Julia Registry
If your package depends on private packages registered in a private registry, you need to handle authentication to that registry and the package repositories in a fully automated way, since you can't manually enter credentials in a CI environment.
This action will deal with all of that for you, all you need is an SSH private key.```yml
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: 1
- uses: julia-actions/cache@v1
- uses: julia-actions/add-julia-registry@v2
with:
key: ${{ secrets.SSH_KEY }}
registry: MyOrg/MyRegistry
- uses: julia-actions/julia-runtest@v1
```This action does the following:
- Starts [ssh-agent](https://linux.die.net/man/1/ssh-agent)
- Adds your private key to the agent
- Configures Git to rewrite HTTPS URLs (`https://github.com/foo/bar`) to SSH URLs (`[email protected]:foo/bar`)
- Downloads the registry you specify and [General](https://github.com/JuliaRegistries/General)Therefore, when Pkg tries to download packages from the HTTPS URLs in the registry, it will do so over SSH, using your private key as authentication.