-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #610 from fthomas/topic/mv-running-steward
Move "Running scala-steward" section to docs/
- Loading branch information
Showing
2 changed files
with
49 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
## Running scala-steward | ||
|
||
```bash | ||
sbt stage | ||
|
||
./modules/core/.jvm/target/universal/stage/bin/scala-steward \ | ||
--workspace "$STEWARD_DIR/workspace" \ | ||
--repos-file "$STEWARD_DIR/repos.md" \ | ||
--git-author-name "Scala steward" \ | ||
--git-author-email ${EMAIL} \ | ||
--github-api-host "https://api.github.com" \ | ||
--github-login ${LOGIN} \ | ||
--git-ask-pass "$STEWARD_DIR/.github/askpass/$LOGIN.sh" \ | ||
--sign-commits \ | ||
--env-var FOO=BAR | ||
``` | ||
|
||
Or, | ||
|
||
```bash | ||
sbt docker:publishLocal | ||
|
||
docker run -v $STEWARD_DIR:/opt/scala-steward -it scala-steward:0.1.0-SNAPSHOT \ | ||
--workspace "/opt/scala-steward/workspace" \ | ||
--repos-file "/opt/scala-steward/repos.md" \ | ||
--git-author-name "Scala steward" \ | ||
--git-author-email ${EMAIL} \ | ||
--github-api-host "https://api.github.com" \ | ||
--github-login ${LOGIN} \ | ||
--git-ask-pass "/opt/scala-steward/.github/askpass/$LOGIN.sh" \ | ||
--sign-commits \ | ||
--env-var FOO=BAR | ||
``` | ||
|
||
If you run scala-steward for your own private projects, you can pass additional environment variables from the command line using the `--env-var` flag as shown in the examples above. You can use this to pass any credentials required by your projects to resolve any private dependencies, e.g.: | ||
|
||
```bash | ||
--env-var BINTRAY_USER=username \ | ||
--env-var BINTRAY_PASS=password | ||
``` | ||
|
||
These variables will be accessible (in sbt) to all of the projects that scala-steward checks dependencies for. |