Files
pokemon-inventory/scripts/deploy-production.sh
T
2026-09-10 02:09:25 -04:00

14 lines
443 B
Bash
Executable File

#!/bin/sh
set -eu
: "${RELEASE_TAG:?Set RELEASE_TAG to an immutable image tag}"
compose_args='-f compose.production.yaml'
export IMAGE_TAG="$RELEASE_TAG"
docker compose $compose_args build api worker web
docker compose $compose_args up -d --wait postgres redis
docker compose $compose_args run --rm api npm run db:migrate
docker compose $compose_args up -d --wait api worker web
docker compose $compose_args ps
./scripts/smoke-production.sh