Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kobi-lemberg committed Mar 16, 2020
1 parent ce387b8 commit af20364
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
17 changes: 14 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
# action.yml
name: 'Scala SBT Action'
author: 'Matan Keidar <[email protected]>'
description: 'SBT build tool action'
description: 'SBT build tool action with docker'
inputs:
commands: # id of input
description: 'SBT commands'
description: 'Commands to run'
required: true
docker-login-username: # Docker login username
description: 'docker login username'
required: true
docker-login-password: # Docker login password
description: 'docker login password'
required: true
docker-registry: # Docker registry
description: 'docker registry'
required: true
default: 'test'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.docker-login-username }}
- ${{ inputs.docker-login-password }}
- ${{ inputs.docker-registry }}
- ${{ inputs.commands }}

branding:
Expand Down
9 changes: 8 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@

sbt version
set -x
${@}

DOCKER_USERNAME=$1
DOCKER_PASSWORD=$2
DOCKER_REGISTRY=$3

echo ${DOCKER_PASSWORD} | docker login -u ${DOCKER_USERNAME} --password-stdin ${DOCKER_REGISTRY}

$4

0 comments on commit af20364

Please sign in to comment.