Rename cli to server and add a docker distro

This commit is contained in:
2026-02-28 19:54:16 +01:00
parent 1c7886463d
commit 564ba1d85d
10 changed files with 88 additions and 26 deletions

View File

@@ -57,4 +57,20 @@ curl -X POST \
rm "${ZIP}"
echo "Release complete! ${ZIP} uploaded to ${TAG}"
# Push Docker image
DOCKER_REPO="${DOCKER_REPO:-docker.site.quack-lab.dev}"
IMAGE_NAME="${IMAGE_NAME:-pyfa-server}"
COMMIT_SHA=$(git rev-parse --short HEAD)
IMAGE_BASE="${DOCKER_REPO}/${IMAGE_NAME}"
echo "Pushing Docker image..."
docker push "${IMAGE_BASE}:${COMMIT_SHA}"
docker push "${IMAGE_BASE}:latest"
TAGS=$(git tag --points-at HEAD 2>/dev/null || true)
if [ -n "$TAGS" ]; then
while IFS= read -r tag; do
[ -n "$tag" ] && docker push "${IMAGE_BASE}:${tag}"
done <<< "$TAGS"
fi
echo "Release complete! ${ZIP} uploaded to ${TAG}, Docker image pushed"