Fix the server docker image build

This commit is contained in:
2026-02-28 20:47:53 +01:00
parent 564ba1d85d
commit 5c01ecb2d1
11 changed files with 87 additions and 35 deletions

View File

@@ -63,7 +63,8 @@ IMAGE_NAME="${IMAGE_NAME:-pyfa-server}"
COMMIT_SHA=$(git rev-parse --short HEAD)
IMAGE_BASE="${DOCKER_REPO}/${IMAGE_NAME}"
echo "Pushing Docker image..."
echo ""
echo "Pushing Docker images..."
docker push "${IMAGE_BASE}:${COMMIT_SHA}"
docker push "${IMAGE_BASE}:latest"
TAGS=$(git tag --points-at HEAD 2>/dev/null || true)
@@ -73,4 +74,15 @@ if [ -n "$TAGS" ]; then
done <<< "$TAGS"
fi
echo "Release complete! ${ZIP} uploaded to ${TAG}, Docker image pushed"
echo ""
echo "Docker image pushed as:"
echo " - ${IMAGE_BASE}:${COMMIT_SHA}"
echo " - ${IMAGE_BASE}:latest"
if [ -n "$TAGS" ]; then
while IFS= read -r tag; do
[ -n "$tag" ] && echo " - ${IMAGE_BASE}:${tag}"
done <<< "$TAGS"
fi
echo ""
echo "Release complete! ${ZIP} uploaded to ${TAG}"