Add functionality to disable docker stacks with zsh update function
This commit is contained in:
parent
cbc3596409
commit
60a90807a8
1
docker/.gitignore
vendored
1
docker/.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*/.env
|
||||
*/DISABLED
|
||||
|
|
|
@ -162,9 +162,13 @@ update() {
|
|||
docker-update() {
|
||||
for dir in $HOME/git/dotfiles/docker/*; do
|
||||
cd $dir
|
||||
dct pull
|
||||
dct up -d
|
||||
cd ..
|
||||
if [[ -f "DISABLED" ]]; then
|
||||
echo "$dir stack is disabled, skipping..."
|
||||
else
|
||||
dct pull
|
||||
dct up -d
|
||||
cd ..
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue