Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Nov 13, 2024
1 parent d8e24e9 commit cf6ca40
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions .github/workflows/.schema-spy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,29 +56,33 @@ jobs:
id: vars
run: |
echo "FLYWAY_IMAGE='docker://flyway/flyway:10'"
echo "FLYWAY_IMAGE=\'${{ inputs.flyway_image }}\'"
echo "FLYWAY_IMAGE=\'${{ inputs.flyway_image }}\'" >> $GITHUB_OUTPUT
echo "FLYWAY_IMAGE='${{ inputs.flyway_image }}'"
echo "FLYWAY_IMAGE='${{ inputs.flyway_image }}'" >> $GITHUB_OUTPUT
# - name: Flyway
# uses: ${{ steps.vars.outputs.FLYWAY_IMAGE }}
# env:
# FLYWAY_URL: jdbc:postgresql://postgres:5432/default
# FLYWAY_USER: postgres
# FLYWAY_PASSWORD: default
# FLYWAY_LOCATIONS: ${{ inputs.flyway_locations }}
# FLYWAY_DEFAULT_SCHEMA: ${{ inputs.flyway_schema }}
# with:
# args: ${{ inputs.flyway_args }}
- name: Check Vars
run: |
echo FLYWAY_IMAGE=${{ steps.vars.outputs.FLYWAY_IMAGE }}
- name: Flyway
uses: "${{ steps.vars.outputs.FLYWAY_IMAGE }}"
env:
FLYWAY_URL: jdbc:postgresql://postgres:5432/default
FLYWAY_USER: postgres
FLYWAY_PASSWORD: default
FLYWAY_LOCATIONS: ${{ inputs.flyway_locations }}
FLYWAY_DEFAULT_SCHEMA: ${{ inputs.flyway_schema }}
with:
args: ${{ inputs.flyway_args }}

# - name: Create Output Folder
# run: |
# mkdir -p output/schema
# chmod a+rwx -R output
- name: Create Output Folder
run: |
mkdir -p output/schema
chmod a+rwx -R output
# - name: Run Schemaspy
# run: docker run --network host -v "$PWD/output:/output" schemaspy/schemaspy:6.2.4 -t pgsql11 -db default -host 127.0.0.1 -port 5432 -u postgres -p default -schemas ${{ inputs.schemaspy_schema }}
- name: Run Schemaspy
run: docker run --network host -v "$PWD/output:/output" schemaspy/schemaspy:6.2.4 -t pgsql11 -db default -host 127.0.0.1 -port 5432 -u postgres -p default -schemas ${{ inputs.schemaspy_schema }}

# - name: Deploy to Pages
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# folder: output
- name: Deploy to Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: output

0 comments on commit cf6ca40

Please sign in to comment.