backend_and_cms/scripts/deploy.sh

16 lines
361 B
Bash
Raw Permalink Normal View History

2024-09-17 12:11:39 +08:00
#! /usr/bin/env sh
# Exit in case of error
set -e
DOMAIN=${DOMAIN?Variable not set} \
STACK_NAME=${STACK_NAME?Variable not set} \
TAG=${TAG?Variable not set} \
docker-compose \
-f docker-compose.yml \
config > docker-stack.yml
docker-auto-labels docker-stack.yml
docker stack deploy -c docker-stack.yml --with-registry-auth "${STACK_NAME?Variable not set}"