Skip to content

Commit

Permalink
Merge pull request #46 from OCHA-DAP/HAPI-131/bugfix/update-reqs
Browse files Browse the repository at this point in the history
Hapi 131 bugfixes
  • Loading branch information
turnerm authored Oct 12, 2023
2 parents c7152ee + 9cd0861 commit 7b38200
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/db_export.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
--name postgres-container
steps:
- name: Checkout code
Expand All @@ -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
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified database/hapi_db.pg_restore
Binary file not shown.

0 comments on commit 7b38200

Please sign in to comment.