diff --git a/action.yml b/action.yml index 9d019c7..db4ab08 100644 --- a/action.yml +++ b/action.yml @@ -15,6 +15,9 @@ inputs: docker-registry: # Docker registry description: 'docker registry' required: false + packages-resolver: # packages resolver + description: 'packages resolver' + required: false runs: using: 'docker' image: 'Dockerfile' @@ -23,6 +26,7 @@ runs: - ${{ inputs.docker-login-password }} - ${{ inputs.docker-registry }} - ${{ inputs.command }} + - ${{ inputs.packages-resolver }} branding: icon: 'package' diff --git a/entrypoint.sh b/entrypoint.sh index 898b885..7e3190f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,20 +2,23 @@ set -x COMMAND="" - +IVY_CONF="" if [[ -z ${1} || -z ${2} || -z ${3} ]]; then echo "One or more variables are not defined, will run command" COMMAND = $1 + IVY_CONF = $2 else DOCKER_USERNAME=$1 DOCKER_PASSWORD=$2 DOCKER_REGISTRY=$3 COMMAND=$4 + IVY_CONF=$5 echo "Running docker login into ${DOCKER_REGISTRY}" echo ${DOCKER_PASSWORD} | docker login -u ${DOCKER_USERNAME} --password-stdin ${DOCKER_REGISTRY} fi echo "Running command" +echo ${IVY_CONF} >> ~/.ivy2/credentials ${COMMAND}