chore: update function name

This commit is contained in:
Oliver Davies 2021-11-11 12:00:00 +00:00
parent f0d0e2796c
commit ab55a7704b

28
run
View file

@ -49,7 +49,20 @@ function help {
printf "\nExtended help:\n Each task has comments for general usage\n" printf "\nExtended help:\n Each task has comments for general usage\n"
} }
function artifact:build { function markdownlint:build {
docker image build . \
-f markdownlint.Dockerfile \
-t markdownlint
}
function markdownlint:run {
docker container run --rm \
-v $(pwd)/.markdownlint.yaml:/root/.markdownlint.yaml \
-v $(pwd)/source:/data \
markdownlint
}
function run-production {
DESTINATION_PATH="${2:-/var/www/oliverdavies.uk}" DESTINATION_PATH="${2:-/var/www/oliverdavies.uk}"
GIT_COMMIT_HASH="${1:-latest}" GIT_COMMIT_HASH="${1:-latest}"
@ -68,19 +81,6 @@ function artifact:build {
docker container rm oliverdavies-uk-web docker container rm oliverdavies-uk-web
} }
function markdownlint:build {
docker image build . \
-f markdownlint.Dockerfile \
-t markdownlint
}
function markdownlint:run {
docker container run --rm \
-v $(pwd)/.markdownlint.yaml:/root/.markdownlint.yaml \
-v $(pwd)/source:/data \
markdownlint
}
function sh { function sh {
DC=run DC=run
_dc --entrypoint sh app _dc --entrypoint sh app