build(run): add Composer task
This commit is contained in:
parent
c1606b4868
commit
a2b363dfe1
8
run
8
run
|
@ -15,6 +15,14 @@ function ci:test {
|
||||||
test "${@}"
|
test "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function composer {
|
||||||
|
# Run Composer commands.
|
||||||
|
docker container run --rm -it \
|
||||||
|
-v $(pwd):/app \
|
||||||
|
--entrypoint composer \
|
||||||
|
${DOCKER_TAG} "${@}"
|
||||||
|
}
|
||||||
|
|
||||||
function help {
|
function help {
|
||||||
printf "%s <task> [args]\n\nTasks:\n" "${0}"
|
printf "%s <task> [args]\n\nTasks:\n" "${0}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue