update pipeline
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
# Deploy UNT (NOVA) to server
|
||||
# Usage: ./ctrl/deploy.sh [rsync|sync|restart|push|edge]
|
||||
# Usage: ./ctrl/deploy.sh [push|rsync|sync|restart|edge]
|
||||
#
|
||||
# push — (default) build images locally, push to registry, deploy (avoids OOM on server)
|
||||
# rsync — sync source, rebuild images on server, restart (bypass CI)
|
||||
# sync — sync source only (no rebuild, no restart)
|
||||
# restart — restart containers (no sync, no rebuild)
|
||||
# push — build images locally, push to registry, deploy (avoids OOM on server)
|
||||
# edge — pull latest images from registry and restart
|
||||
#
|
||||
# Note: code is baked into the image (no volume mounts), so code changes
|
||||
@@ -50,7 +50,7 @@ do_restart() {
|
||||
EOF
|
||||
}
|
||||
|
||||
case "${1:-rsync}" in
|
||||
case "${1:-push}" in
|
||||
rsync)
|
||||
do_sync
|
||||
do_rebuild_and_restart
|
||||
@@ -66,8 +66,8 @@ case "${1:-rsync}" in
|
||||
|
||||
push)
|
||||
echo "=== Building images locally ==="
|
||||
docker build -t registry.mcrn.ar/unt/api:latest -f ctrl/Dockerfile.api .
|
||||
docker build -t registry.mcrn.ar/unt/ui:latest -f ctrl/Dockerfile.ui .
|
||||
docker build -t unt/api:latest -f ctrl/Dockerfile.api .
|
||||
docker build -t unt/ui:latest -f ctrl/Dockerfile.ui .
|
||||
|
||||
echo "=== Pushing to registry ==="
|
||||
/home/mariano/wdir/ppl/ctrl/push-image.sh unt/api latest
|
||||
|
||||
Reference in New Issue
Block a user