-
Notifications
You must be signed in to change notification settings - Fork 33
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
Build scripts: check database upgrade before deploy #383
Comments
After updating password in
It turns out that the path to the migration is also very important. When we run migration during application startup we have prefix |
We should only modify |
Command for checking for updates should be |
Allow to migrate db that previously migrated by our application. Addressed to #383 [ci skip]
Related (ssh tunnel & ansible): https://stackoverflow.com/questions/31264121/ansible-and-liquibase-integration |
Here is how to disable starting of Web server: https://www.baeldung.com/spring-boot-no-web-server |
This regression might not occur: #1557 |
Now the application can be run as java -jar target/mystamps.war liquibase validate or ./mvnw spring-boot:run -Dspring-boot.run.arguments='liquibase,validate' to validate that all migrations and their checksums are correct. This should prevent the case when the application is failing to start after deploy as now we have a possibility to check that migrations are valid prior the application is run. Part of #383
The output of Ansible playbook when everything is fine:
|
The output of Ansible playbook when one of migration is invalid:
|
The error was: 306 Shells that use pipes should set the pipefail option src/main/scripts/ci/ansible/deploy.yml:41 Task/Handler: Ensuring whether Liquibase migrations are valid Should be in 6162b3c commit. See https://ansible-lint.readthedocs.io/en/latest/rules/risky-shell-pipe/ Relate to #383
…version of ansible-lint See ansible/ansible-lint#663 It seems like it's fixed in 5.0.5 version but we have old version (#1515) Relate to #383
Fails in TravisCI as expected (because of #1557): https://app.travis-ci.com/github/php-coder/mystamps/jobs/581907556 |
No description provided.
The text was updated successfully, but these errors were encountered: