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
|
*/.env
|
||||||
|
*/DISABLED
|
||||||
|
|
|
@ -162,9 +162,13 @@ update() {
|
||||||
docker-update() {
|
docker-update() {
|
||||||
for dir in $HOME/git/dotfiles/docker/*; do
|
for dir in $HOME/git/dotfiles/docker/*; do
|
||||||
cd $dir
|
cd $dir
|
||||||
dct pull
|
if [[ -f "DISABLED" ]]; then
|
||||||
dct up -d
|
echo "$dir stack is disabled, skipping..."
|
||||||
cd ..
|
else
|
||||||
|
dct pull
|
||||||
|
dct up -d
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue