README.md in picsolve_docker_builder-0.3.2 vs README.md in picsolve_docker_builder-0.4.0
- old
+ new
@@ -64,9 +64,55 @@
sbt:
build_task:
- clean
- "universal:packageZipTarball"
```
+## Usage examples
+
+### Building
+
+#### Scala
+
+##### Scala app docker image
+
+###### .docker-builder.yml
+
+```yaml
+docker:
+ base_image: docker.picsolve.net/java-8
+ image_name: docker.picsolve.net/my-app-name
+```
+
+###### build image
+
+`bundle exec rake docker:build`
+
+###### push to registry
+
+`bundle exec rake docker:push`
+
+###### for jenkins
+
+`bundle exec rake docker:jenkins`
+
+##### Library snapshot build
+
+###### .docker-builder.yml
+
+```yaml
+docker:
+ base_image: docker.picsolve.net/java-8
+ image_name: null
+ ssh_auth_forwarding: true
+```
+
+###### build & publish snapshot
+
+`bundle exec rake scala:lib:snapshot`
+
+###### build & publish release
+
+`bundle exec rake scala:lib:release`
## Release process
This gem is released publicly to Rubygems repositories. To trigger a release you have to do the following steps: