Files
blog/.source_me.ps1
2022-08-30 08:29:50 +02:00

52 lines
847 B
PowerShell

Set-Alias d $(Get-Command docker).Source
Set-Alias dc $(Get-Command docker-compose).Source
Set-Alias g $(Get-Command git).Source
function d-composer {
dc run --rm wordpress composer $args
}
function d-wp {
dc run --rm wordpress wp $args
}
function d-s3-sync {
dc run --rm wordpress .dev/ops/s3-sync.sh $args
}
function d-heroku {
dc run --rm --entrypoint=heroku wordpress $args
}
function d-bash {
dc run --rm --entrypoint=bash wordpress -l $args
}
function dc-build {
dc build --pull --no-cache $args
}
function dc-init {
dc run --rm --entrypoint '.dev/init.sh' wordpress $args
}
function dc-up {
dc up -d $args
}
function dc-down {
dc down $args
}
function dc-destroy {
dc down -v $args
}
function g-clean {
g clean -xd $args
}
function g-mk-deploy {
g archive -o deploy.tar.gz HEAD
}