From e3339d74b9c25dd3cb67ac7dc1c9e9f2f0932f03 Mon Sep 17 00:00:00 2001 From: kobi-lemberg Date: Thu, 19 Mar 2020 13:20:34 +0200 Subject: [PATCH] Fix command --- README.md | 20 ++++++++++++++++++++ entrypoint.sh | 1 + 2 files changed, 21 insertions(+) diff --git a/README.md b/README.md index 8b13789..53a32ab 100644 --- a/README.md +++ b/README.md @@ -1 +1,21 @@ +Github action with JDK 11.0.5, SBT 1.3.8, Docker and Ivy resolver. + +Examples: + +```$xslt +name: Run tests + uses: matankdr/github-docker-sbt@11.0.5-1.3.8-DOCKER-IVY-CREDS + with: + packages-resolver: "ivy creds" + command: sbt test + +name: Run test and upload container + uses: matankdr/github-docker-sbt@11.0.5-1.3.8-DOCKER-IVY-CREDS + with: + docker-login-username: "my username" + docker-login-password: "my password" + docker-registry: "my registry" + packages-resolver: "ivy creds" + command: sbt test docker:publish publish +``` \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 7e3190f..50485a7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -19,6 +19,7 @@ else fi echo "Running command" +mkdir ~/.ivy2/ || echo "Ivy folder is exists" echo ${IVY_CONF} >> ~/.ivy2/credentials ${COMMAND}