mirror of
https://github.com/karl0ss/ai-frame-image-server.git
synced 2025-04-26 01:50:11 +01:00
add publish script
This commit is contained in:
parent
c4b9dd2921
commit
32afc70d03
22
publish.sh
Normal file
22
publish.sh
Normal 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!"
|
Loading…
x
Reference in New Issue
Block a user