deploy.sh 407 B

12345678910111213141516
  1. #! /usr/bin/env sh
  2. # Exit in case of error
  3. set -e
  4. DOMAIN=${DOMAIN?Variable not set} \
  5. TRAEFIK_TAG=${TRAEFIK_TAG?Variable not set} \
  6. STACK_NAME=${STACK_NAME?Variable not set} \
  7. TAG=${TAG?Variable not set} \
  8. docker-compose \
  9. -f docker-compose.yml \
  10. config > docker-stack.yml
  11. docker-auto-labels docker-stack.yml
  12. docker stack deploy -c docker-stack.yml --with-registry-auth "${STACK_NAME?Variable not set}"