generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CE-22-Fix Schemaspy and Trivy scan (#168)
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ on: | |
- main | ||
|
||
jobs: | ||
generate_schemaspy: | ||
runs-on: ubuntu-latest | ||
|
||
generate-schema-spy: | ||
name: Generate SchemaSpy Documentation | ||
runs-on: ubuntu-22.04 | ||
services: | ||
postgres: | ||
image: postgis/postgis | ||
|
@@ -27,21 +27,23 @@ jobs: | |
- 5432:5432 | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/checkout@v4 | ||
- uses: joshuaavalon/[email protected] | ||
name: Generate SchemaSpy docs for node backend | ||
with: | ||
url: jdbc:postgresql://postgres:5432/postgres | ||
user: postgres | ||
password: default | ||
env: | ||
FLYWAY_VALIDATE_MIGRATION_NAMING: true | ||
FLYWAY_LOCATIONS: filesystem:./backend/db/migrations | ||
FLYWAY_DEFAULT_SCHEMA: "public" | ||
- name: Create Output Folder | ||
run: | | ||
mkdir output | ||
chmod a+rwx -R output | ||
- name: Run Schemaspy | ||
run: docker run --network host -v "$PWD/output:/output" schemaspy/schemaspy:snapshot -t pgsql -db postgres -host 127.0.0.1 -port 5432 -u postgres -p default | ||
run: docker run --network host -v "$PWD/output:/output" schemaspy/schemaspy:6.2.4 -t pgsql -db default -host 127.0.0.1 -port 5432 -u postgres -p default -schemas public | ||
- name: Deploy to Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters