Does anyone have an example setup for CircleCI obtaining Datomic dev-local
from the new dev-tools
package?
I'm wondering what's the simplest way to provide the credentials for the cognitect-dev-tools
maven repo. Do I need to provide an example settings.xml
which I copy to ~/.m2/settings.xml
explicitly from the .circleci/config.yml
job definition?
That much I figured out that the settings.xml
can contain references to the environment, so I can work with a static file, like:
<settings xmlns="<http://maven.apache.org/SETTINGS/1.0.0>"
xmlns:xsi="<http://www.w3.org/2001/XMLSchema-instance>"
xsi:schemaLocation="<http://maven.apache.org/SETTINGS/1.0.0>
<https://maven.apache.org/xsd/settings-1.0.0.xsd>">
<servers>
<server>
<id>cognitect-dev-tools</id>
<username>${env.COGNITECT_DEV_TOOLS_MVN_USER}</username>
<password>${env.COGNITECT_DEV_TOOLS_MVN_PWD}</password>
</server>
</servers>
</settings>
@onetom this is how I've solved this issue previously. I set secret vars in CircleCI and pull those in via the XML file you've described.
If you're using GitHub actions there's a Maven action that will do the settings.xml dance for you based on strings in YAML rather than XML. 🤷
thanks for the reassurance!
according to this old ticket, it's not currently possible to point Clojure CLI tools to a different maven user settings file:
https://clojure.atlassian.net/browse/TDEPS-99
which is otherwise possible to do directly with the mvn
command line, using the -s
/ --settings
option.
Why does qseq
appear to not take :timeout
?