added pgvector docker image
All checks were successful
CI / Build wildfly docker images (push) Successful in 2m30s

This commit is contained in:
2025-03-05 20:35:44 +08:00
parent a65a014d89
commit 33b98de4d5
2 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
name: CI
on:
push:
branches: [ master ]
paths:
- 'pgvector/**'
- '.gitea/workflows/build-pgvector.yaml'
jobs:
"Build wildfly docker images":
runs-on: hostinger
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.4.0
with:
driver: docker-container
-
name: Login to Gitea container registry
uses: docker/login-action@v3
with:
registry: gitea.woggioni.net
username: woggioni
password: ${{ secrets.PUBLISHER_TOKEN }}
-
name: Build and push pgvector images
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:pgvector"
push: true
pull: true
tags: |
"gitea.woggioni.net/woggioni/pgvector:latest"
"gitea.woggioni.net/woggioni/pgvector:0.8.0-pg16"
build-args: "PG_VERSION=16"
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/pgvector:buildx
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/pgvector:buildx

14
pgvector/Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
ARG PG_VERSION=17
FROM postgres:${PG_VERSION}-alpine AS build
WORKDIR /
RUN apk update
RUN apk add gcc make musl-dev clang19 llvm19 git
RUN git clone --branch v0.8.0 https://github.com/pgvector/pgvector.git pgvector
WORKDIR pgvector
RUN make
RUN make install
FROM postgres:alpine AS release
RUN rm -rf /usr/local
COPY --from=build /usr/local /usr/local