mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-01 17:17:24 -04:00
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:
22
.github/workflows/docker-release.yml
vendored
22
.github/workflows/docker-release.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Build and Push Docker Image
|
name: Build and Push AI-Trader-Server Docker Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -63,11 +63,11 @@ jobs:
|
|||||||
IS_PRERELEASE="${{ steps.meta.outputs.is_prerelease }}"
|
IS_PRERELEASE="${{ steps.meta.outputs.is_prerelease }}"
|
||||||
|
|
||||||
# Always tag with version
|
# 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
|
# Only add 'latest' tag for stable releases
|
||||||
if [[ "$IS_PRERELEASE" == "false" ]]; then
|
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"
|
echo "Tagging as both $VERSION and latest"
|
||||||
else
|
else
|
||||||
echo "Pre-release detected - tagging as $VERSION only (NOT latest)"
|
echo "Pre-release detected - tagging as $VERSION only (NOT latest)"
|
||||||
@@ -89,10 +89,10 @@ jobs:
|
|||||||
- name: Image published
|
- name: Image published
|
||||||
run: |
|
run: |
|
||||||
echo "✅ Docker image published successfully!"
|
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
|
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
|
else
|
||||||
echo "⚠️ Pre-release version - 'latest' tag not updated"
|
echo "⚠️ Pre-release version - 'latest' tag not updated"
|
||||||
fi
|
fi
|
||||||
@@ -123,8 +123,8 @@ jobs:
|
|||||||
|
|
||||||
**Using Docker Compose:**
|
**Using Docker Compose:**
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/Xe138/AI-Trader.git
|
git clone https://github.com/Xe138/AI-Trader-Server.git
|
||||||
cd AI-Trader
|
cd AI-Trader-Server
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
# Edit .env with your API keys
|
# Edit .env with your API keys
|
||||||
docker-compose up
|
docker-compose up
|
||||||
@@ -132,11 +132,11 @@ jobs:
|
|||||||
|
|
||||||
**Using pre-built image:**
|
**Using pre-built image:**
|
||||||
```bash
|
```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 \
|
docker run --env-file .env \
|
||||||
-v $(pwd)/data:/app/data \
|
-v $(pwd)/data:/app/data \
|
||||||
-v $(pwd)/logs:/app/logs \
|
-v $(pwd)/logs:/app/logs \
|
||||||
ghcr.io/REPO_OWNER/ai-trader:VERSION
|
ghcr.io/REPO_OWNER/ai-trader-server:VERSION
|
||||||
```
|
```
|
||||||
|
|
||||||
### Documentation
|
### Documentation
|
||||||
@@ -153,8 +153,8 @@ jobs:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**Container Registry:** `ghcr.io/REPO_OWNER/ai-trader:VERSION`
|
**Container Registry:** `ghcr.io/REPO_OWNER/ai-trader-server:VERSION`
|
||||||
**Docker Image:** `ghcr.io/REPO_OWNER/ai-trader:latest`
|
**Docker Image:** `ghcr.io/REPO_OWNER/ai-trader-server:latest`
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Replace placeholders
|
# Replace placeholders
|
||||||
|
|||||||
Reference in New Issue
Block a user