From ff5df113e6db1c1c94e2f2dd09dbcc7f1a496a07 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Sat, 3 Feb 2024 22:27:12 +0100
Subject: [PATCH] feat(splio-vectorrs): Add initial image build

---
 images/.utils/gitlab-ci.yaml    |  1 +
 images/splio-vectorrs/.release  |  1 +
 images/splio-vectorrs/Earthfile | 14 ++++++++++++++
 3 files changed, 16 insertions(+)
 create mode 100644 images/splio-vectorrs/.release
 create mode 100644 images/splio-vectorrs/Earthfile

diff --git a/images/.utils/gitlab-ci.yaml b/images/.utils/gitlab-ci.yaml
index 31f039ea4..0c3b8d4c7 100644
--- a/images/.utils/gitlab-ci.yaml
+++ b/images/.utils/gitlab-ci.yaml
@@ -15,6 +15,7 @@ container-build:
           - findmydevice-server
           - opentf
           - cowsay
+          - splio-vectorrs
   script:
     - cd images/${IMAGE}
     - |
diff --git a/images/splio-vectorrs/.release b/images/splio-vectorrs/.release
new file mode 100644
index 000000000..7d462e42a
--- /dev/null
+++ b/images/splio-vectorrs/.release
@@ -0,0 +1 @@
+release=15-3.0-p1
diff --git a/images/splio-vectorrs/Earthfile b/images/splio-vectorrs/Earthfile
new file mode 100644
index 000000000..0f67230cd
--- /dev/null
+++ b/images/splio-vectorrs/Earthfile
@@ -0,0 +1,14 @@
+VERSION 0.7
+
+container:
+    FROM ghcr.io/zalando/spilo-15:3.0-p1
+    ARG registry=quay.io/shivering-isles/splio-vectorrs
+    RUN curl -L https://github.com/tensorchord/pgvecto.rs/releases/download/v0.1.11/vectors-pg15-v0.1.11-x86_64-unknown-linux-gnu.deb > vectors-pg15-v0.1.11-x86_64-unknown-linux-gnu.deb
+    RUN apt install ./vectors-pg15-*.deb
+    DO ../.utils/+LABEL --image=postfix --version=main
+    IF [ $latest = "true" ]
+        SAVE IMAGE --push ${registry}:latest
+    ELSE
+        LABEL "quay.expires-after"="12w"
+    END
+    SAVE IMAGE --push ${registry}:${tag}
-- 
GitLab