Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deraen/boot-contrib-gpg
https://github.com/deraen/boot-contrib-gpg
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/deraen/boot-contrib-gpg
- Owner: Deraen
- License: mit
- Created: 2015-10-18T16:18:43.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-18T17:16:52.000Z (almost 9 years ago)
- Last Synced: 2023-03-24T13:26:47.979Z (over 1 year ago)
- Language: Clojure
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Boot-contrib-gpg
## Use
Create file `~/.boot/credentials.edn`, with something like this:
```edn
{#"clojars"
{:username "username"
:password "password"}
#"my\.datomic\.com"
{:username "username"
:password "password"}}
```Encrypt the file:
```
$ gpg --default-recipient-self --output credentials.edn.gpg --encrypt credentials.edn
```**Note:** You can also use the same file as for Leiningen:
```
$ ln -s ~/.lein/credentials.clj.gpg ~/boot/credentials.edn.gpg
```To use dependencies from private repositories in your project:
```
(set-env! :dependencies '[[deraen/boot-contrib-gpg "0.1.0-SNAPSHOT"]])
(require '[deraen.boot-contrib-gpg :refer [set-repositories! push-gpg]])(set-repositories! [["my.datomic.com" {:url "https://my.datomic.com/repo"
:creds :gpg}]])(set-env! :dependencies '[rest of dependencies, including stuff from private repos])
```To push to specific repo:
**TODO**
## TODO
- [ ] Doesn't support Boot default respositories `[["id" "url"]]`, should instead be `[["id" {:url "url"}]]`
- [ ] All repos need `:creds :gpg` for push to check for gpg credentials