- Add CACHEBUST build arg to Dockerfile - Pass timestamp to --build-arg in deploy.sh - Ensures artdag is re-fetched from GitHub on each deploy Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
439 B
Bash
Executable File
20 lines
439 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
echo "=== Pulling latest code ==="
|
|
git pull
|
|
|
|
echo "=== Building Docker image ==="
|
|
docker build --build-arg CACHEBUST=$(date +%s) -t git.rose-ash.com/art-dag/l1-server:latest .
|
|
|
|
echo "=== Redeploying celery stack ==="
|
|
docker stack deploy -c docker-compose.yml celery
|
|
|
|
echo "=== Restarting proxy nginx ==="
|
|
docker service update --force proxy_nginx
|
|
|
|
echo "=== Done ==="
|
|
docker stack services celery
|