Skip to content

Commit da012a6

Browse files
authored
Update pgstac to v0.6.12 (#511)
* deps: update pgstac to v0.6.12 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. * chore: update changelog
1 parent c3d7c14 commit da012a6

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.github/workflows/cicd.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
name: stac-fastapi
22
on:
33
push:
4-
branches: [ master ]
4+
branches: [master]
55
pull_request:
6-
branches: [ master ]
6+
branches: [master]
77

88
jobs:
99
test:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: [ '3.8', '3.9', '3.10']
13+
python-version: ["3.8", "3.9", "3.10"]
1414
timeout-minutes: 10
1515

1616
services:
1717
db_service:
18-
image: bitner/pgstac:0.2.7
18+
image: ghcr.io/stac-utils/pgstac:v0.6.12
1919
env:
2020
POSTGRES_USER: username
2121
POSTGRES_PASSWORD: password
2222
POSTGRES_DB: postgis
2323
POSTGRES_HOST: localhost
2424
POSTGRES_PORT: 5432
25+
PGUSER: username
26+
PGPASSWORD: password
27+
PGDATABASE: postgis
2528
ALLOW_IP_RANGE: 0.0.0.0/0
2629
# Set health checks to wait until postgres has started
2730
options: >-
@@ -123,4 +126,4 @@ jobs:
123126
steps:
124127
- uses: actions/checkout@v3
125128
- name: Test generating docs
126-
run: make docs
129+
run: make docs

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
### Changed
88

9+
* Updated CI to test against [pgstac v0.6.12](https://github.com/stac-utils/pgstac/releases/tag/v0.6.12) ([#511](https://github.com/stac-utils/stac-fastapi/pull/511))
10+
911
### Removed
1012

1113
### Fixed

docker-compose.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ services:
2626
- ./scripts:/app/scripts
2727
depends_on:
2828
- database
29-
command:
30-
bash -c "./scripts/wait-for-it.sh database:5432 && python -m stac_fastapi.sqlalchemy.app"
29+
command: bash -c "./scripts/wait-for-it.sh database:5432 && python -m stac_fastapi.sqlalchemy.app"
3130

3231
app-pgstac:
3332
container_name: stac-fastapi-pgstac
@@ -58,12 +57,11 @@ services:
5857
- ./scripts:/app/scripts
5958
depends_on:
6059
- database
61-
command:
62-
bash -c "./scripts/wait-for-it.sh database:5432 && python -m stac_fastapi.pgstac.app"
60+
command: bash -c "./scripts/wait-for-it.sh database:5432 && python -m stac_fastapi.pgstac.app"
6361

6462
database:
6563
container_name: stac-db
66-
image: ghcr.io/stac-utils/pgstac:v0.6.10
64+
image: ghcr.io/stac-utils/pgstac:v0.6.12
6765
environment:
6866
- POSTGRES_USER=username
6967
- POSTGRES_PASSWORD=password

0 commit comments

Comments
 (0)