chore: update function name
This commit is contained in:
parent
f0d0e2796c
commit
ab55a7704b
28
run
28
run
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue