Files
ai-training/scripts/pull-images.sh
T
Oleksandr Bezdieniezhnykh aeb7f8ca8c Update autopilot workflow and documentation for project cycle completion
- Modified the existing-code workflow to automatically loop back to New Task after project completion without user confirmation.
- Updated the autopilot state to reflect the current step as `done` and status as `completed`.
- Clarified the deployment status report by specifying non-deployed services and their purposes.

These changes enhance the automation of task management and improve documentation clarity.
2026-03-29 05:02:22 +03:00

49 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
usage() {
cat <<EOF
Usage: $(basename "$0") [--help]
Pull Azaion AI Training Docker images from the container registry.
Environment:
DOCKER_REGISTRY Registry URL (required)
DOCKER_IMAGE_TAG Image tag to pull (default: latest)
EOF
exit 0
}
[[ "${1:-}" == "--help" ]] && usage
if [[ -f "$PROJECT_ROOT/.env" ]]; then
set -a
source "$PROJECT_ROOT/.env"
set +a
fi
DOCKER_REGISTRY="${DOCKER_REGISTRY:?DOCKER_REGISTRY is required}"
DOCKER_IMAGE_TAG="${DOCKER_IMAGE_TAG:-latest}"
IMAGES=(
"${DOCKER_REGISTRY}/azaion/training:${DOCKER_IMAGE_TAG}"
"${DOCKER_REGISTRY}/azaion/annotation-queue:${DOCKER_IMAGE_TAG}"
)
echo "Pulling images (tag: ${DOCKER_IMAGE_TAG})..."
for image in "${IMAGES[@]}"; do
echo " Pulling $image ..."
if docker pull "$image"; then
echo " OK: $image"
else
echo " FAILED: $image"
exit 1
fi
done
echo "All images pulled successfully."