Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/aws-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to AWS

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

env:
AWS_REGION: us-east-1
TERRAFORM_VERSION: 1.6.0

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build backend image
uses: docker/build-push-action@v5
with:
context: ./backend
load: true
tags: devops-backend:build

- name: Build frontend image
uses: docker/build-push-action@v5
with:
context: ./frontend
load: true
tags: devops-frontend:build
36 changes: 36 additions & 0 deletions .github/workflows/gcp-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to GCP

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

env:
GCP_REGION: us-central1
TERRAFORM_VERSION: 1.6.0

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build backend image
uses: docker/build-push-action@v5
with:
context: ./backend
load: true
tags: devops-backend:build

- name: Build frontend image
uses: docker/build-push-action@v5
with:
context: ./frontend
load: true
tags: devops-frontend:build
98 changes: 98 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# Virtual Environment
venv/
env/
ENV/
env.bak/
venv.bak/

# Node.js
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.npm
.yarn-integrity

# Next.js
.next/
out/
*.tsbuildinfo
next-env.d.ts

# Terraform
*.tfstate
*.tfstate.*
*.tfvars
*.tfvars.json
.terraform/
.terraform.lock.hcl
crash.log
crash.*.log
*.log
*.backup
*.backup.*

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db

# Secrets
*.pem
*.key
*.crt
*.cer
credentials.json
*.json

# Backend
backend/app/__pycache__/
backend/venv/

# Frontend
frontend/.next/
frontend/node_modules/

# Infrastructure
infrastructure/.terraform/
infrastructure/*.tfstate
infrastructure/*.tfstate.*

# Local environment files
.env
.env.local
.env.*.local

# Terraform lock files (optional - can be committed for reproducibility)
# *.lock.hcl
Loading