add publish script

This commit is contained in:
Karl Hudgell 2025-04-21 09:55:10 +01:00
parent c4b9dd2921
commit 32afc70d03
2 changed files with 22 additions and 0 deletions

View File

22
publish.sh Normal file
View File

@ -0,0 +1,22 @@
#!/bin/bash
# Set variables
IMAGE_NAME="ai-frame-image-server"
REGISTRY="kithub.k-world.me.uk"
USERNAME="karl"
TAG="latest"
FULL_IMAGE="$REGISTRY/$USERNAME/$IMAGE_NAME:$TAG"
# Build the image
echo "🛠️ Building Docker image..."
docker build -t $IMAGE_NAME .
# Tag the image
echo "🏷️ Tagging image as $FULL_IMAGE"
docker tag $IMAGE_NAME $FULL_IMAGE
# Push the image
echo "📤 Pushing $FULL_IMAGE to $REGISTRY..."
docker push $FULL_IMAGE
echo "✅ Done!"