Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4

Expand All @@ -64,6 +67,7 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
Expand Down
26 changes: 12 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- pg_version: "17.9"
postgis_version: "3.6.2"
pgvector_version: "0.8.2"
- pg_version: "16.13"
postgis_version: "3.6.2"
pgvector_version: "0.8.2"
- pg_version: "15.17"
postgis_version: "3.6.2"
pgvector_version: "0.8.2"
- pg_version: "14.22"
postgis_version: "3.6.2"
pgvector_version: "0.8.2"
platform:
- linux/amd64
- linux/arm64
pg_version: ["17.9", "16.13", "15.17", "14.22"]
postgis_version: ["3.6.2"]
pgvector_version: ["0.8.2"]

steps:
- uses: actions/checkout@v6

- name: Set up QEMU
uses: docker/setup-qemu-action@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4

Expand All @@ -37,6 +33,7 @@ jobs:
with:
context: .
load: true
platforms: ${{ matrix.platform }}
tags: postgres-test:pg${{ matrix.pg_version }}
build-args: |
PG_VERSION=${{ matrix.pg_version }}
Expand All @@ -46,9 +43,10 @@ jobs:
- name: Start PostgreSQL container and test extensions
run: |
IMAGE_TAG="postgres-test:pg${{ matrix.pg_version }}"
echo "Testing image: $IMAGE_TAG"
echo "Testing image: $IMAGE_TAG (platform: ${{ matrix.platform }})"

docker run -d --name test-db \
--platform ${{ matrix.platform }} \
-e POSTGRES_PASSWORD=test \
-e POSTGRES_USER=test \
-e POSTGRES_DB=test \
Expand Down
Loading