mirror of
https://github.com/caprover/caprover
synced 2025-12-11 22:05:32 +00:00
Added script to add registry to all services
This commit is contained in:
15
dev-scripts/add-registry-to-all-services.sh
Normal file
15
dev-scripts/add-registry-to-all-services.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
####################################################################
|
||||
##### Updates all services with registry token
|
||||
####################################################################
|
||||
|
||||
# curl -sSL https://raw.githubusercontent.com/caprover/caprover/master/dev-scripts/add-registry-to-all-services.sh | bash -s --
|
||||
|
||||
|
||||
all_services=$(docker service ls --format {{.Name}})
|
||||
for srv in $all_services
|
||||
do
|
||||
echo "Service: $srv"
|
||||
docker service update --with-registry-auth $srv --force -d
|
||||
done
|
||||
Reference in New Issue
Block a user