|
15 | 15 |
|
16 | 16 | services: |
17 | 17 | db_service: |
18 | | - image: ghcr.io/stac-utils/pgstac:v0.6.12 |
| 18 | + image: ghcr.io/stac-utils/pgstac:v0.6.13 |
19 | 19 | env: |
20 | 20 | POSTGRES_USER: username |
21 | 21 | POSTGRES_PASSWORD: password |
@@ -130,7 +130,7 @@ jobs: |
130 | 130 | backend: ["sqlalchemy", "pgstac"] |
131 | 131 | services: |
132 | 132 | pgstac: |
133 | | - image: ghcr.io/stac-utils/pgstac:v0.6.11 |
| 133 | + image: ghcr.io/stac-utils/pgstac:v0.6.13 |
134 | 134 | env: |
135 | 135 | POSTGRES_USER: username |
136 | 136 | POSTGRES_PASSWORD: password |
@@ -187,3 +187,41 @@ jobs: |
187 | 187 | - uses: actions/checkout@v3 |
188 | 188 | - name: Test generating docs |
189 | 189 | run: make docs |
| 190 | + |
| 191 | + docker-build-push: |
| 192 | + runs-on: ubuntu-latest |
| 193 | + needs: [test, validate, test-docs] |
| 194 | + permissions: |
| 195 | + contents: read |
| 196 | + packages: write |
| 197 | + strategy: |
| 198 | + fail-fast: true |
| 199 | + matrix: |
| 200 | + backend: ["sqlalchemy", "pgstac"] |
| 201 | + steps: |
| 202 | + - name: Checkout repository |
| 203 | + uses: actions/checkout@v3 |
| 204 | + - name: Log in to the Container registry |
| 205 | + |
| 206 | + with: |
| 207 | + registry: ghcr.io |
| 208 | + username: ${{ github.actor }} |
| 209 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 210 | + - name: Extract metadata (tags, labels) for Docker |
| 211 | + id: meta |
| 212 | + |
| 213 | + with: |
| 214 | + images: ghcr.io/stac-utils/stac-fastapi |
| 215 | + tags: | |
| 216 | + type=schedule,suffix=-${{ matrix.backend }} |
| 217 | + type=ref,event=branch,suffix=-${{ matrix.backend }} |
| 218 | + type=ref,event=tag,suffix=-${{ matrix.backend }} |
| 219 | + type=ref,event=pr,suffix=-${{ matrix.backend }} |
| 220 | + - name: Build and push Docker image |
| 221 | + |
| 222 | + with: |
| 223 | + context: . |
| 224 | + file: docker/Dockerfile.${{ matrix.backend }} |
| 225 | + push: true |
| 226 | + tags: ${{ steps.meta.outputs.tags }} |
| 227 | + labels: ${{ steps.meta.outputs.labels }} |
0 commit comments