diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a48a39..36ffcae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -184,26 +184,26 @@ jobs: run: | echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - # Push `latest` when comiting to main + # Push `latest` - name: Build and push latest if: github.ref == 'refs/heads/main' uses: docker/build-push-action@v6 with: platforms: linux/amd64 context: . - file: Dockerfile.${{ matrix.image-version }} + file: Dockerfile push: true tags: | ghcr.io/stac-utils/titiler-pgstac:latest - # Push `{VERSION}` when pushing a new tag + # Push `{VERSION}` - name: Build and push tag if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' uses: docker/build-push-action@v6 with: platforms: linux/amd64 context: . - file: Dockerfile.${{ matrix.image-version }} + file: Dockerfile push: true tags: | ghcr.io/stac-utils/titiler-pgstac:${{ steps.tag.outputs.version }}