Skip to content

Commit

Permalink
deps: update pgstac to v0.6.12
Browse files Browse the repository at this point in the history
We have a floating v0.6.* dependency in code, but our CI contains deps on (two
different) older pgstac versions. This commit updates those references to point
to https://github.com/stac-utils/pgstac/releases/tag/v0.6.12, and contains some
sidecar yaml linting.
  • Loading branch information
gadomski committed Jan 17, 2023
1 parent c3d7c14 commit 2b09f3d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
name: stac-fastapi
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10']
python-version: ["3.8", "3.9", "3.10"]
timeout-minutes: 10

services:
db_service:
image: bitner/pgstac:0.2.7
image: ghcr.io/stac-utils/pgstac:v0.6.12
env:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_DB: postgis
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
PGUSER: username
PGPASSWORD: password
PGDATABASE: postgis
ALLOW_IP_RANGE: 0.0.0.0/0
# Set health checks to wait until postgres has started
options: >-
Expand Down Expand Up @@ -123,4 +126,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Test generating docs
run: make docs
run: make docs
8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ services:
- ./scripts:/app/scripts
depends_on:
- database
command:
bash -c "./scripts/wait-for-it.sh database:5432 && python -m stac_fastapi.sqlalchemy.app"
command: bash -c "./scripts/wait-for-it.sh database:5432 && python -m stac_fastapi.sqlalchemy.app"

app-pgstac:
container_name: stac-fastapi-pgstac
Expand Down Expand Up @@ -58,12 +57,11 @@ services:
- ./scripts:/app/scripts
depends_on:
- database
command:
bash -c "./scripts/wait-for-it.sh database:5432 && python -m stac_fastapi.pgstac.app"
command: bash -c "./scripts/wait-for-it.sh database:5432 && python -m stac_fastapi.pgstac.app"

database:
container_name: stac-db
image: ghcr.io/stac-utils/pgstac:v0.6.10
image: ghcr.io/stac-utils/pgstac:v0.6.12
environment:
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
Expand Down

0 comments on commit 2b09f3d

Please sign in to comment.