Compare commits

..

No commits in common. "fd15ed5a35a646ebc521c773d1dafad5c24ffa90" and "0cdc47d0d241329bf0ede3f670796d4a11d1c41d" have entirely different histories.

2 changed files with 52 additions and 53 deletions

View File

@ -51,24 +51,8 @@ jobs:
echo "Using ACTOR: $ACTOR"
echo "Using REPO_NAME: $REPO_NAME"
# Build with compression
docker build --compress -t git.vinylnostalgia.com/$ACTOR/$REPO_NAME-backend:latest ./be -f ./be/Dockerfile.prod
# Save image to tar file
docker save git.vinylnostalgia.com/$ACTOR/$REPO_NAME-backend:latest > backend.tar
# Split the tar file into smaller chunks (100MB each)
split -b 100M backend.tar backend.tar.part_
# Push each chunk
for chunk in backend.tar.part_*; do
docker load < "$chunk"
docker build -t git.vinylnostalgia.com/$ACTOR/$REPO_NAME-backend:latest ./be -f ./be/Dockerfile.prod
docker push git.vinylnostalgia.com/$ACTOR/$REPO_NAME-backend:latest
sleep 5 # Add delay between pushes
done
# Cleanup
rm backend.tar backend.tar.part_*
- name: Build and push frontend image
env:
@ -93,21 +77,5 @@ jobs:
echo "Using ACTOR: $ACTOR"
echo "Using REPO_NAME: $REPO_NAME"
# Build with compression
docker build --compress -t git.vinylnostalgia.com/$ACTOR/$REPO_NAME-frontend:latest ./fe -f ./fe/Dockerfile.prod
# Save image to tar file
docker save git.vinylnostalgia.com/$ACTOR/$REPO_NAME-frontend:latest > frontend.tar
# Split the tar file into smaller chunks (100MB each)
split -b 100M frontend.tar frontend.tar.part_
# Push each chunk
for chunk in frontend.tar.part_*; do
docker load < "$chunk"
docker build -t git.vinylnostalgia.com/$ACTOR/$REPO_NAME-frontend:latest ./fe -f ./fe/Dockerfile.prod
docker push git.vinylnostalgia.com/$ACTOR/$REPO_NAME-frontend:latest
sleep 5 # Add delay between pushes
done
# Cleanup
rm frontend.tar frontend.tar.part_*

View File

@ -1,30 +1,61 @@
# Git files
# Git
.git
.gitignore
# Virtual environment
.venv
venv/
env/
ENV/
*.env # Ignore local .env files within the backend directory if any
# Python cache
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# IDE files
# Virtual Environment
venv/
ENV/
# IDE
.idea/
.vscode/
*.swp
*.swo
# Test artifacts
# Logs
logs/
*.log
# Local development
.env
.env.local
.env.*.local
# Docker
Dockerfile*
docker-compose*
.dockerignore
# Tests
tests/
test/
.pytest_cache/
.coverage
htmlcov/
.coverage*
# Other build/temp files
*.egg-info/
dist/
build/
*.db # e.g., sqlite temp dbs
# Documentation
docs/
*.md
!README.md