cic-internal-integration/scripts/deploy.sh

17 lines
407 B
Bash
Raw Normal View History

2021-08-13 21:45:27 +02:00
#! /usr/bin/env sh
# Exit in case of error
set -e
DOMAIN=${DOMAIN?Variable not set} \
TRAEFIK_TAG=${TRAEFIK_TAG?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}"