Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit ab698d1

Browse files
committed
publish titiler-xarray docker image
1 parent 8669088 commit ab698d1

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ jobs:
117117
needs: [tests]
118118
if: github.ref == 'refs/heads/main' || startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
119119
runs-on: ubuntu-latest
120+
strategy:
121+
matrix:
122+
include:
123+
- image: ghcr.io/${{ github.repository }}
124+
file: dockerfiles/Dockerfile
125+
- image: ghcr.io/${{ github.repository }}-xarray
126+
file: dockerfiles/Dockerfile.xarray
120127
steps:
121128
- name: Checkout
122129
uses: actions/checkout@v6
@@ -127,13 +134,6 @@ jobs:
127134
- name: Set up Docker Buildx
128135
uses: docker/setup-buildx-action@v3
129136

130-
- name: Login to Docker Hub
131-
if: github.repository == 'developmentseed/titiler'
132-
uses: docker/login-action@v3
133-
with:
134-
username: ${{ secrets.DOCKERHUB_USERNAME }}
135-
password: ${{ secrets.DOCKERHUB_TOKEN }}
136-
137137
- name: Log in to the GitHub Container registry
138138
uses: docker/login-action@v3
139139
with:
@@ -145,8 +145,7 @@ jobs:
145145
id: meta
146146
uses: docker/metadata-action@v5
147147
with:
148-
images: |
149-
ghcr.io/${{ github.repository }}
148+
images: ${{ matrix.image }}
150149
flavor: |
151150
latest=false
152151
tags: |
@@ -158,7 +157,7 @@ jobs:
158157
with:
159158
platforms: linux/amd64,linux/arm64
160159
context: .
161-
file: dockerfiles/Dockerfile
160+
file: ${{ matrix.file }}
162161
push: ${{ github.event_name != 'pull_request' }}
163162
tags: ${{ steps.meta.outputs.tags }}
164163
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)