Skip to content
Snippets Groups Projects
Commit 18d243fb authored by Bert Palm's avatar Bert Palm :bug:
Browse files

Merge branch 'protect_flyway_migrations' into 'main'

protect files in flyway/migrations with an CI job

See merge request !224
parents dbc1299b 06e1bfde
No related branches found
No related tags found
1 merge request!224protect files in flyway/migrations with an CI job
Pipeline #471306 failed
---
stages:
- "check"
- "integration"
- "end-to-end"
......@@ -22,3 +23,19 @@ variables:
services:
- "docker:${DOCKER_SERVICE_IMAGE_TAG}"
check-protected-files:
stage: check
script:
- echo "Files in flyway/migrations MUST NOT be altered! Undo your changes and commit again."
- exit 1
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes:
- flyway/migrations/V1_1__create_schema_thing_mapping.sql
- flyway/migrations/V2_1__configdb_add_schema_and_role.sql
- flyway/migrations/V2_2__configdb_initial_schema.sql
- flyway/migrations/V2_3__configdb_initial_data.sql
- flyway/migrations/V2_4__configdb_add_bosch.sql
- flyway/migrations/V2_5__configdb_drop_S3_not_null.sql
- flyway/migrations/V2_6__configdb_modify_qaqc_test.sql
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment