Merge pull request #14 from nutcas3/upgraded

feat: Add database migration steps to CI and deployment workflows
This commit is contained in:
Nutcase
2026-04-29 03:04:31 +03:00
committed by GitHub
2 changed files with 18 additions and 0 deletions
+6
View File
@@ -40,6 +40,12 @@ jobs:
working-directory: apps/api-server
run: go mod download
- name: Run database migrations
working-directory: apps/api-server
env:
DATABASE_URL: postgresql://test_user:test_password@localhost:5432/test_db?sslmode=disable
run: go run cmd/migrate/main.go --action=up
- name: Run linter
working-directory: apps/api-server
run: |
+12
View File
@@ -170,6 +170,12 @@ jobs:
with:
version: 'latest'
- name: Run database migrations
run: |
echo "Running database migrations for staging..."
# kubectl exec -it deployment/api-server -- go run cmd/migrate/main.go --action=up
echo "Staging migrations complete"
- name: Deploy to staging cluster
run: |
echo "Deploying to staging..."
@@ -191,6 +197,12 @@ jobs:
with:
version: 'latest'
- name: Run database migrations
run: |
echo "Running database migrations for production..."
# kubectl exec -it deployment/api-server -- go run cmd/migrate/main.go --action=up
echo "Production migrations complete"
- name: Deploy to production cluster
run: |
echo "Deploying to production..."