| | #!/bin/bash
|
| |
|
| |
|
| | VERSION=$(grep VERSION .env | cut -d '=' -f2)
|
| | GITHUB_REPOSITORY=$(grep GITHUB_REPOSITORY .env | cut -d '=' -f2)
|
| |
|
| | echo "Building release version: $VERSION"
|
| | echo "Repository: $GITHUB_REPOSITORY"
|
| |
|
| |
|
| | echo "Building backend image..."
|
| | docker build \
|
| | --target production \
|
| | -t ghcr.io/${GITHUB_REPOSITORY}-backend:${VERSION} \
|
| | ./backend
|
| |
|
| |
|
| | echo "Building frontend image..."
|
| | docker build \
|
| | --target production \
|
| | -t ghcr.io/${GITHUB_REPOSITORY}-frontend:${VERSION} \
|
| | ./frontend
|
| |
|
| |
|
| | echo "Starting production containers..."
|
| | docker compose -f docker-compose.prod.yml up |