Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opengisch/signalo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 28863581251dea87b29aa10904815fb4ae69d3b4
Choose a base ref
..
head repository: opengisch/signalo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d57e90221010e770b51e83fdc226b4ccb8c4c9a1
Choose a head ref
Showing with 9 additions and 3 deletions.
  1. +9 −3 .github/workflows/test.yml
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -67,12 +67,18 @@ jobs:
docker push opengisch/signalo:unstable
- name: Deploy Demo DB
env:
DEMO_DB_HOST: ${{ secrets.DEMO_DB_HOST }}
DEMO_DB_USER: ${{ secrets.DEMO_DB_USER }}
DEMO_DB_PORT: ${{ secrets.DEMO_DB_PORT }}
DEMO_DB_TESTING: ${{ secrets.DEMO_DB_TESTING }}
DEMO_DB_PASSWORD: ${{ secrets.DEMO_DB_PASSWORD }}
run: |
BACKUP_FILE=signalo-testing-db-dump-with-demo.backup
export PGPASSWORD=${{ secrets.DEMO_DB_PASSWORD }}
export PGPASSWORD=${DEMO_DB_PASSWORD}
docker exec signalo pg_dump --format custom --exclude-schema=public --blobs --compress 5 --file ${BACKUP_FILE} signalo
pg_restore --host=${{ secrets.DEMO_DB_HOST }} --username=${{ secrets.DEMO_DB_USER }} --port=${{ secrets.DEMO_DB_PORT }} --dbname==${{ secrets.DEMO_DB_TESTING }} --exit-on-error --clean --if-exists --no-owner ${BACKUP_FILE}
psql --host=${{ secrets.DEMO_DB_HOST }} --username=${{ secrets.DEMO_DB_USER }} --port=${{ secrets.DEMO_DB_PORT }} --dbname=${{ secrets.DEMO_DB_TESTING }} -v EXIT_ON_ERROR=on -f ./datamodel/roles.sql
pg_restore --host=${DEMO_DB_HOST} --username=${DEMO_DB_USER} --port=${DEMO_DB_PORT} --dbname==${DEMO_DB_TESTING} --exit-on-error --clean --if-exists --no-owner ${BACKUP_FILE}
psql --host=${DEMO_DB_HOST} --username=${DEMO_DB_USER} --port=${DEMO_DB_PORT} --dbname=${DEMO_DB_TESTING} -v EXIT_ON_ERROR=on -f ./datamodel/roles.sql
- name: "failure logs"
if: failure()