refactor: update GitHub Actions workflow for AI-Trader-Server rebrand

Update Docker image references and repository URLs in the Docker release
workflow to reflect the rebrand from AI-Trader to AI-Trader-Server.

Changes:
- Workflow name: Build and Push AI-Trader-Server Docker Image
- Docker image tags: ai-trader → ai-trader-server
- Repository URLs: Xe138/AI-Trader → Xe138/AI-Trader-Server
- Release notes template updated with new image names

Part of Phase 4: Internal Configuration & Metadata (Task 18)
This commit is contained in:
2025-11-01 12:03:43 -04:00
parent 3f136ab014
commit 123915647e

View File

@@ -1,4 +1,4 @@
name: Build and Push Docker Image
name: Build and Push AI-Trader-Server Docker Image
on:
push:
@@ -63,11 +63,11 @@ jobs:
IS_PRERELEASE="${{ steps.meta.outputs.is_prerelease }}"
# Always tag with version
TAGS="ghcr.io/$REPO_OWNER_LOWER/ai-trader:$VERSION"
TAGS="ghcr.io/$REPO_OWNER_LOWER/ai-trader-server:$VERSION"
# Only add 'latest' tag for stable releases
if [[ "$IS_PRERELEASE" == "false" ]]; then
TAGS="${TAGS}"$'\n'"ghcr.io/$REPO_OWNER_LOWER/ai-trader:latest"
TAGS="${TAGS}"$'\n'"ghcr.io/$REPO_OWNER_LOWER/ai-trader-server:latest"
echo "Tagging as both $VERSION and latest"
else
echo "Pre-release detected - tagging as $VERSION only (NOT latest)"
@@ -89,10 +89,10 @@ jobs:
- name: Image published
run: |
echo "✅ Docker image published successfully!"
echo "📦 Pull with: docker pull ghcr.io/${{ steps.meta.outputs.repo_owner_lower }}/ai-trader:${{ steps.meta.outputs.version }}"
echo "📦 Pull with: docker pull ghcr.io/${{ steps.meta.outputs.repo_owner_lower }}/ai-trader-server:${{ steps.meta.outputs.version }}"
if [[ "${{ steps.meta.outputs.is_prerelease }}" == "false" ]]; then
echo "📦 Or latest: docker pull ghcr.io/${{ steps.meta.outputs.repo_owner_lower }}/ai-trader:latest"
echo "📦 Or latest: docker pull ghcr.io/${{ steps.meta.outputs.repo_owner_lower }}/ai-trader-server:latest"
else
echo "⚠️ Pre-release version - 'latest' tag not updated"
fi
@@ -123,8 +123,8 @@ jobs:
**Using Docker Compose:**
```bash
git clone https://github.com/Xe138/AI-Trader.git
cd AI-Trader
git clone https://github.com/Xe138/AI-Trader-Server.git
cd AI-Trader-Server
cp .env.example .env
# Edit .env with your API keys
docker-compose up
@@ -132,11 +132,11 @@ jobs:
**Using pre-built image:**
```bash
docker pull ghcr.io/REPO_OWNER/ai-trader:VERSION
docker pull ghcr.io/REPO_OWNER/ai-trader-server:VERSION
docker run --env-file .env \
-v $(pwd)/data:/app/data \
-v $(pwd)/logs:/app/logs \
ghcr.io/REPO_OWNER/ai-trader:VERSION
ghcr.io/REPO_OWNER/ai-trader-server:VERSION
```
### Documentation
@@ -153,8 +153,8 @@ jobs:
---
**Container Registry:** `ghcr.io/REPO_OWNER/ai-trader:VERSION`
**Docker Image:** `ghcr.io/REPO_OWNER/ai-trader:latest`
**Container Registry:** `ghcr.io/REPO_OWNER/ai-trader-server:VERSION`
**Docker Image:** `ghcr.io/REPO_OWNER/ai-trader-server:latest`
EOF
# Replace placeholders