Skip to content

Commit

Permalink
ensure postgres version used is 15 not 14
Browse files Browse the repository at this point in the history
  • Loading branch information
damonmcc committed Mar 29, 2024
1 parent c3eba54 commit ee9b680
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/update_api_database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
jobs:
run_update:
name: Run Update
runs-on: macos-latest
runs-on: ubuntu-latest
environment:
name: ${{ inputs.environment_name }}
steps:
Expand Down Expand Up @@ -95,6 +95,11 @@ jobs:
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"

- name: Setup PostgreSQL
uses: tj-actions/install-postgresql@v3
with:
postgresql-version: 15

- name: Health check
run: |
Expand All @@ -103,14 +108,13 @@ jobs:
echo "Using API Database: ${{ inputs.api_name }}"
echo "Using environment: ${{ inputs.environment_name }}"
echo "Toy Secret value: $TOY_SECRET_1PASSWORD"
postgres --version
psql --version
pg_dump --version
which psql
- name: Install dependencies
run: |
brew uninstall postgresql@14
brew install postgresql@15
export PATH="/usr/local/opt/postgresql@15/bin:$PATH"
echo export PATH="/usr/local/opt/postgresql@15/bin:$PATH" >> ~/.bash_profile
brew services start postgresql@15
brew install minio/stable/mc
mc alias set spaces $DO_SPACES_ENDPOINT $DO_SPACES_ACCESS_KEY_ID $DO_SPACES_SECRET_ACCESS_KEY
python3 -m pip install --force-reinstall -r requirements.txt
Expand All @@ -119,7 +123,3 @@ jobs:
psql --version
pg_dump --version
which psql
- name: Check dependencies (PATH really)
run: |
which psql

0 comments on commit ee9b680

Please sign in to comment.