Only pull image when needed.
This commit is contained in:
parent
123fef5103
commit
37ca0678f7
@ -3,7 +3,10 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# let's do a refresh of the certificates. Let's Encrypt will not run if it's not time.
|
# let's do a refresh of the certificates. Let's Encrypt will not run if it's not time.
|
||||||
docker pull certbot/certbot:latest
|
CERTBOT_IMAGE_NAME="certbot/certbot:latest"
|
||||||
|
if ! docker image inspect "$CERTBOT_IMAGE_NAME" &> /dev/null; then
|
||||||
|
docker pull "$CERTBOT_IMAGE_NAME"
|
||||||
|
fi
|
||||||
|
|
||||||
# iterate over each domain and call certbot
|
# iterate over each domain and call certbot
|
||||||
for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do
|
for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do
|
||||||
|
@ -3,8 +3,9 @@
|
|||||||
set -eu
|
set -eu
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
if ! docker image inspect "$GHOST_IMAGE" &> /dev/null; then
|
||||||
docker pull "$GHOST_IMAGE"
|
docker pull "$GHOST_IMAGE"
|
||||||
|
fi
|
||||||
|
|
||||||
DEPLOY_STACK=false
|
DEPLOY_STACK=false
|
||||||
for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do
|
for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do
|
||||||
|
@ -4,8 +4,13 @@ set -eu
|
|||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
|
||||||
|
if ! docker image inspect "$GITEA_IMAGE" &> /dev/null; then
|
||||||
docker pull "$GITEA_IMAGE"
|
docker pull "$GITEA_IMAGE"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! docker image inspect "$GITEA_DB_IMAGE" &> /dev/null; then
|
||||||
docker pull "$GITEA_DB_IMAGE"
|
docker pull "$GITEA_DB_IMAGE"
|
||||||
|
fi
|
||||||
|
|
||||||
for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do
|
for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do
|
||||||
export DOMAIN_NAME="$DOMAIN_NAME"
|
export DOMAIN_NAME="$DOMAIN_NAME"
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
set -eu
|
set -eu
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
if ! docker image inspect "$NEXTCLOUD_IMAGE" &> /dev/null; then
|
||||||
docker pull "$NEXTCLOUD_IMAGE"
|
docker pull "$NEXTCLOUD_IMAGE"
|
||||||
|
fi
|
||||||
|
|
||||||
for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do
|
for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do
|
||||||
export DOMAIN_NAME="$DOMAIN_NAME"
|
export DOMAIN_NAME="$DOMAIN_NAME"
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
set -e
|
set -e
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
if ! docker image inspect "$NEXTCLOUD_IMAGE" &> /dev/null; then
|
||||||
docker pull "$NGINX_IMAGE"
|
docker pull "$NGINX_IMAGE"
|
||||||
|
fi
|
||||||
|
|
||||||
#https://github.com/fiatjaf/expensive-relay
|
#https://github.com/fiatjaf/expensive-relay
|
||||||
# NOSTR RELAY WHICH REQUIRES PAYMENTS.
|
# NOSTR RELAY WHICH REQUIRES PAYMENTS.
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
set -eu
|
set -eu
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
if ! docker image inspect "$NOSTR_RELAY_IMAGE" &> /dev/null; then
|
||||||
docker pull "$NOSTR_RELAY_IMAGE"
|
docker pull "$NOSTR_RELAY_IMAGE"
|
||||||
|
fi
|
||||||
|
|
||||||
for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do
|
for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do
|
||||||
export DOMAIN_NAME="$DOMAIN_NAME"
|
export DOMAIN_NAME="$DOMAIN_NAME"
|
||||||
|
Loading…
Reference in New Issue
Block a user