-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathliquibase.flowfile.yaml
107 lines (96 loc) · 3.29 KB
/
liquibase.flowfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# validate-changes-update-db.yaml
# Author: Pete Pickerill
# Description:
# This flow runs several Liquibase commands to generate information that could be useful for review, auditing
# and troubleshooting purposes. It will run in all shared pipeline environments from CI onward. It is not
# required in development environments
stages:
Validate Changelog:
actions:
# Run validate on Repo Changelog
# https://docs.liquibase.com/commands/update/validate.html
- type: liquibase
command: validate
cmdArgs: {}
# Show database status
# https://docs.liquibase.com/commands/change-tracking/status.html
- type: liquibase
command: status
cmdArgs: { verbose: "true" }
Run Checks Packages - Security Checks:
actions:
# Run Checks on Repo Changelog
# https://docs.liquibase.com/commands/quality-checks/subcommands/run.html
- type: liquibase
command: checks run
cmdArgs:
{ checks-scope: "changelog",
checks-settings-file: "checks.pkg",
checks-packages: "security-checks",
changeset-filter: "pending"
}
Run Checks Packages - Data Checks:
actions:
# Run Checks on Repo Changelog
# https://docs.liquibase.com/commands/quality-checks/subcommands/run.html
- type: liquibase
command: checks run
cmdArgs:
{ checks-scope: "changelog",
checks-settings-file: "checks.pkg",
checks-packages: "data-checks",
changeset-filter: "pending"
}
Run Checks Packages - Performance Checks:
actions:
# Run Checks on Repo Changelog
# https://docs.liquibase.com/commands/quality-checks/subcommands/run.html
- type: liquibase
command: checks run
cmdArgs:
{ checks-scope: "changelog",
checks-settings-file: "checks.pkg",
checks-packages: "performance-checks",
changeset-filter: "pending"
}
Run Checks Packages - Liquibase Metadata Checks:
actions:
# Run Checks on Repo Changelog
# https://docs.liquibase.com/commands/quality-checks/subcommands/run.html
- type: liquibase
command: checks run
cmdArgs:
{ checks-scope: "changelog",
checks-settings-file: "checks.pkg",
checks-packages: "liquibase-metadata-checks",
changeset-filter: "pending"
}
Database Update:
# Run Update on Latest Repo State
# https://docs.liquibase.com/commands/update/update-sql.html
# actions:
# - type: liquibase
# command: update-sql
# cmdArgs: { }
# # Run Update on Latest Repo State
# # https://docs.liquibase.com/commands/update/update.html
actions:
- type: liquibase
command: update
cmdArgs: { }
endStage:
actions:
# Run Checks on Database
# https://docs.liquibase.com/commands/quality-checks/subcommands/run.html
# - type: liquibase
# command: checks run
# cmdArgs:
# { checks-scope: "database",
# checks-settings-file: "liquibase.checks-settings.conf",
# verbose: "true"
# }
# Show history
# https://docs.liquibase.com/commands/change-tracking/history.html
- type: liquibase
command: history
cmdArgs: {}