Skip to content

Commit

Permalink
Update pgvector images
Browse files Browse the repository at this point in the history
  • Loading branch information
willemcdejongh committed Jan 16, 2025
1 parent 8353ada commit 6cd0ec9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/pgvector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ permissions:
contents: read

jobs:
build-pg-vector-16:
build-pg-vector-images:

runs-on: ubuntu-latest

Expand All @@ -22,10 +22,21 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
- name: Discover and Build Images
run: |
cd pgvector
for dir in */; do
# Extract version from the directory name
version=${dir%/}
echo "Building and pushing image for PG Vector $version"
# Build and push the Docker image for this version
docker buildx build \
--platform linux/amd64,linux/arm64 \
--push \
--tag ${{ vars.DOCKERHUB_NAMESPACE }}/pgvector:$version \
--file "$dir/Dockerfile" \
"$dir"
done
uses: docker/build-push-action@v6
with:
context: ./pgvector/16/
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ vars.DOCKERHUB_NAMESPACE }}/pgvector:16
2 changes: 1 addition & 1 deletion .github/workflows/python-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ permissions:
contents: read

jobs:
build-python-3-12:
build-python-images:

runs-on: ubuntu-latest

Expand Down

0 comments on commit 6cd0ec9

Please sign in to comment.