diff --git a/.github/workflows/db_export.yaml b/.github/workflows/db_export.yaml index 387b224d..a51689e7 100644 --- a/.github/workflows/db_export.yaml +++ b/.github/workflows/db_export.yaml @@ -24,6 +24,7 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 + --name postgres-container steps: - name: Checkout code @@ -42,12 +43,15 @@ jobs: - name: Run Pipeline run: python3.11 -m hapi.pipelines.app -db "postgresql+psycopg://postgres:postgres@localhost:5432/hapi" + env: + HDX_KEY: ${{ secrets.HDX_KEY }} - name: Dump PostgreSQL DB - run: pg_dump -U postgres -Fc hapi -f database/hapi_db.pg_restore + run: | + docker exec -t postgres-container pg_dump -U postgres -Fc hapi -f hapi_db.pg_restore + docker cp postgres-container:/hapi_db.pg_restore database/hapi_db.pg_restore - name: Commit updated DB export - if: always() uses: stefanzweifel/git-auto-commit-action@v5 with: file_pattern: database/hapi_db.pg_restore diff --git a/CHANGELOG.md b/CHANGELOG.md index 643b3007..f6c83ce9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [0.4.1] - 2023-10-11 + +### Fixed + +- Update requirements to use latest `hapi-schema` +- Change DB export GitHub action to have the HDX API key, and + to run `pg_dump` in the postgres docker container + ## [0.4.0] - 2023-10-11 ### Added diff --git a/database/hapi_db.pg_restore b/database/hapi_db.pg_restore index af624275..07e15428 100644 Binary files a/database/hapi_db.pg_restore and b/database/hapi_db.pg_restore differ