bullpen/backend/publish.sh

23 lines
509 B
Bash

#!/bin/bash
# Replace with your actual Gitea Docker registry
REGISTRY_URL=git.palaeomatiker.home64.de
IMAGE_NAME=bullpen
TAG=latest
# Authenticate with Docker registry
echo "Logging into Docker registry..."
docker login $REGISTRY_URL
# Build the image
echo "Building Docker image..."
docker build -t $IMAGE_NAME .
# Tag the image
echo "Tagging image..."
docker tag $IMAGE_NAME $REGISTRY_URL/$IMAGE_NAME:$TAG
# Push the image
echo "Pushing to Gitea registry..."
docker push $REGISTRY_URL/$IMAGE_NAME:$TAG