Skip to content

Commit

Permalink
feat: Composer auth
Browse files Browse the repository at this point in the history
  • Loading branch information
leocavalcante committed Dec 5, 2023
1 parent 0597453 commit d8fdae6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ images() {
}

run() {
echo "docker run --rm -v $(pwd):/opt -w /opt --entrypoint ${2:-php} ${1:-$PHPCTL_TTY} $PHPCTL_IMAGE"
composer_auth="${COMPOSER_AUTH//[$'\t\r\n ']}"
echo "docker run --rm -e COMPOSER_AUTH=$composer_auth -v $(pwd):/opt -w /opt --entrypoint ${2:-php} ${1:-$PHPCTL_TTY} $PHPCTL_IMAGE"
}

0 comments on commit d8fdae6

Please sign in to comment.