Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1717 - Bug/Segregate db migrations deployment - Part 1 #1942

Merged
merged 1 commit into from
May 17, 2023
Merged
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
10 changes: 10 additions & 0 deletions .github/workflows/build-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ jobs:
# Build DB migrations.
build-db-migrations:
name: Build db-migrations
environment: DEV
runs-on: ubuntu-latest
needs: createTag
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -156,6 +157,7 @@ jobs:
# Build SIMS-API
build-sims-api:
name: Build SIMS-API
environment: DEV
runs-on: ubuntu-latest
needs: createTag
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -183,6 +185,7 @@ jobs:
# Build Workers
build-workers:
name: Build Workers
environment: DEV
runs-on: ubuntu-latest
needs: createTag
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -210,6 +213,7 @@ jobs:
# Build Queue Consumers
build-queue-consumers:
name: Build Queue Consumers
environment: DEV
runs-on: ubuntu-latest
needs: createTag
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -237,6 +241,7 @@ jobs:
# Build Web/Frontend
build-web-frontend:
name: Build Web/Frontend
environment: DEV
runs-on: ubuntu-latest
needs: createTag
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -264,6 +269,7 @@ jobs:
# Run DB migrations.
run-db-migrations:
name: Run db-migrations
environment: DEV
runs-on: ubuntu-latest
needs: [build-db-migrations, build-sims-api, build-workers, build-queue-consumers, build-web-frontend]
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -291,6 +297,7 @@ jobs:
# Deploy SIMS API.
deploy-sims-api:
name: Deploy SIMS-API
environment: DEV
runs-on: ubuntu-latest
needs: run-db-migrations
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -318,6 +325,7 @@ jobs:
# Deploy workers.
deploy-workers:
name: Deploy Workers
environment: DEV
runs-on: ubuntu-latest
needs: run-db-migrations
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -345,6 +353,7 @@ jobs:
# Deploy queue consumers.
deploy-queue-consumers:
name: Deploy Queue Consumers
environment: DEV
runs-on: ubuntu-latest
needs: run-db-migrations
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -372,6 +381,7 @@ jobs:
# Deploy Web/Frontend.
deploy-web-frontend:
name: Deploy Web/Frontend
environment: DEV
runs-on: ubuntu-latest
needs: run-db-migrations
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/deploy-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
# Run DB migrations.
run-db-migrations:
name: Run db-migrations
environment: ${{ github.event.inputs.environment }}
runs-on: ubuntu-latest
steps:
- name: Print env
Expand All @@ -87,6 +88,7 @@ jobs:
# Deploy SIMS API.
deploy-sims-api:
name: Deploy SIMS-API
environment: ${{ github.event.inputs.environment }}
runs-on: ubuntu-latest
needs: run-db-migrations
steps:
Expand All @@ -113,6 +115,7 @@ jobs:
# Deploy workers.
deploy-workers:
name: Deploy Workers
environment: ${{ github.event.inputs.environment }}
runs-on: ubuntu-latest
needs: run-db-migrations
steps:
Expand All @@ -139,6 +142,7 @@ jobs:
# Deploy queue consumers.
deploy-queue-consumers:
name: Deploy Queue Consumers
environment: ${{ github.event.inputs.environment }}
runs-on: ubuntu-latest
needs: run-db-migrations
steps:
Expand All @@ -165,6 +169,7 @@ jobs:
# Deploy Web/Frontend.
deploy-web-frontend:
name: Deploy Web/Frontend
environment: ${{ github.event.inputs.environment }}
runs-on: ubuntu-latest
needs: run-db-migrations
steps:
Expand Down