diff --git a/run b/run index 23c5d98b..1a8a979e 100755 --- a/run +++ b/run @@ -49,7 +49,20 @@ function help { 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}" GIT_COMMIT_HASH="${1:-latest}" @@ -68,19 +81,6 @@ function artifact:build { 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 { DC=run _dc --entrypoint sh app