Skip to content

Add db support to GitHub workflow#442

Merged
OhKai merged 68 commits intomainfrom
ms2-github-workflow-with-db
Jan 23, 2025
Merged

Add db support to GitHub workflow#442
OhKai merged 68 commits intomainfrom
ms2-github-workflow-with-db

Conversation

@anishsapkota
Copy link
Contributor

@anishsapkota anishsapkota commented Jan 9, 2025

This should enable us to deploy MS with db.

Adjustments:

  1. Compare the migrations between main branch and current
    --> if no diff detected, create/reuse the db with name proceed_db_<branch-name>_main
    --> if diff detected, check the migrations within branch

  2. Compare the migrations within the branch
    --> if diff detected in step 1 and no diff within branch, create/reuse the db with proceed_db_<branch-name>
    --> if diff detected in step 1 and diff detected within branch, drop old db and create new one with same name as above

  3. Extend the @OhKai 's preview deployment action : action-preview-cloudrun

  4. Bump prisma version to 6.2.1 --> This was necessary to support prisma in alpine linux that we use for docker image

  5. Adjusted e2e tests

  6. Postgres removes xml schema definition before saving to db ( alternative: use TEXT datatype instead XML) --> corrected this issue in application layer by concatenating xml schema definition after fetching for db

  7. minor bug fixes

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link

CLOUDRUN ACTIONS

✅ Successfully created Preview Deployment.

https://pr-442---ms-server-staging-c4f6qdpj7q-ew.a.run.app

Comment on lines +4 to +9
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this file be deleted?

@OhKai OhKai merged commit 6518bf0 into main Jan 23, 2025
17 checks passed
@OhKai OhKai deleted the ms2-github-workflow-with-db branch January 23, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants