Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
ruvector/.github/workflows/docker-publish.yml at main · codingwatching/ruvector · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
codingwatching
ruvector
Repository navigation
Code
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
ruvector
/
.github
/
workflows
/
docker-publish.yml
Copy path
View runs
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
193 lines (170 loc) · 7.55 KB
main
Breadcrumbs
ruvector
/
.github
/
workflows
/
docker-publish.yml
Copy path
Top
File metadata and controls
Code
Blame
193 lines (170 loc) · 7.55 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
#
RuVector-Postgres Docker Hub Publication
#
Publishes multi-arch Docker images to Docker Hub on release
#
#
Triggers:
#
- On release creation (v* tags)
#
- Manual workflow dispatch
#
#
Images published:
#
- ruvector/ruvector-postgres:latest
#
- ruvector/ruvector-postgres:2.0.0
#
- ruvector/ruvector-postgres:2.0.0-pg17
#
- ruvector/ruvector-postgres:pg17
#
- (Same for pg14, pg15, pg16)
name
:
Docker Hub Publish
on
:
release
:
types
:
[published]
workflow_dispatch
:
inputs
:
version
:
description
:
'
Version to publish (e.g., 2.0.0)
'
required
:
true
default
:
'
2.0.0
'
pg_versions
:
description
:
'
PostgreSQL versions (comma-separated)
'
required
:
false
default
:
'
14,15,16,17
'
env
:
DOCKER_REGISTRY
:
ruvector
IMAGE_NAME
:
ruvector-postgres
RUST_VERSION
:
'
1.83
'
jobs
:
#
============================================================================
#
Build and Push Docker Images
#
============================================================================
build-and-push
:
name
:
Build & Push PG${{ matrix.pg_version }}
runs-on
:
ubuntu-latest
permissions
:
contents
:
read
packages
:
write
strategy
:
fail-fast
:
false
matrix
:
pg_version
:
[14, 15, 16, 17]
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v4
-
name
:
Extract version
id
:
version
run
:
|
if [ "${{ github.event_name }}" == "release" ]; then
VERSION="${{ github.event.release.tag_name }}"
VERSION="${VERSION#v}"
else
VERSION="${{ github.event.inputs.version }}"
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Building version: $VERSION"
-
name
:
Set up QEMU
uses
:
docker/setup-qemu-action@v3
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v3
-
name
:
Log in to Docker Hub
uses
:
docker/login-action@v3
with
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
-
name
:
Log in to GitHub Container Registry
uses
:
docker/login-action@v3
with
:
registry
:
ghcr.io
username
:
${{ github.actor }}
password
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Generate Docker metadata
id
:
meta
uses
:
docker/metadata-action@v5
with
:
images
:
|
${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
tags
:
|
type=raw,value=${{ steps.version.outputs.version }}-pg${{ matrix.pg_version }}
type=raw,value=v${{ steps.version.outputs.version }}-pg${{ matrix.pg_version }}
type=raw,value=pg${{ matrix.pg_version }}
type=raw,value=latest,enable=${{ matrix.pg_version == 17 }}
type=raw,value=${{ steps.version.outputs.version }},enable=${{ matrix.pg_version == 17 }}
type=raw,value=v${{ steps.version.outputs.version }},enable=${{ matrix.pg_version == 17 }}
labels
:
|
org.opencontainers.image.title=RuVector PostgreSQL Extension v2
org.opencontainers.image.description=High-performance vector database extension for PostgreSQL with 230+ SQL functions
org.opencontainers.image.vendor=ruv.io
ruvector.pg.version=${{ matrix.pg_version }}
ruvector.features=attention,gnn,hybrid,tenancy,healing,learning,hyperbolic,graph,gated-transformer,integrity
-
name
:
Build and push Docker image
uses
:
docker/build-push-action@v5
with
:
context
:
.
file
:
crates/ruvector-postgres/docker/Dockerfile
platforms
:
linux/amd64,linux/arm64
push
:
true
tags
:
${{ steps.meta.outputs.tags }}
labels
:
${{ steps.meta.outputs.labels }}
build-args
:
|
PG_VERSION=${{ matrix.pg_version }}
RUST_VERSION=${{ env.RUST_VERSION }}
cache-from
:
type=gha,scope=pg${{ matrix.pg_version }}
cache-to
:
type=gha,mode=max,scope=pg${{ matrix.pg_version }}
-
name
:
Test published image
run
:
|
docker pull ${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}-pg${{ matrix.pg_version }}
docker run -d \
--name ruvector-test-${{ matrix.pg_version }} \
-e POSTGRES_USER=ruvector \
-e POSTGRES_PASSWORD=ruvector \
-e POSTGRES_DB=ruvector_test \
${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}-pg${{ matrix.pg_version }}
# Wait for PostgreSQL to start
sleep 30
# Verify extension
docker exec ruvector-test-${{ matrix.pg_version }} \
psql -U ruvector -d ruvector_test -c "CREATE EXTENSION IF NOT EXISTS ruvector; SELECT ruvector_version();"
# Cleanup
docker rm -f ruvector-test-${{ matrix.pg_version }}
#
============================================================================
#
Update Docker Hub Description
#
============================================================================
update-description
:
name
:
Update Docker Hub Description
runs-on
:
ubuntu-latest
needs
:
build-and-push
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v4
-
name
:
Update Docker Hub description
uses
:
peter-evans/dockerhub-description@v4
with
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
repository
:
${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}
readme-filepath
:
crates/ruvector-postgres/docker/README.md
short-description
:
"
RuVector v2 - High-performance PostgreSQL vector extension with 230+ SQL functions, SIMD, Flash Attention, GNN, hybrid search
"
#
============================================================================
#
Publication Summary
#
============================================================================
summary
:
name
:
Publication Summary
runs-on
:
ubuntu-latest
needs
:
[build-and-push, update-description]
if
:
always()
steps
:
-
name
:
Generate summary
run
:
|
echo "## Docker Hub Publication Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Published Images" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Image | PostgreSQL | Status |" >> $GITHUB_STEP_SUMMARY
echo "|-------|------------|--------|" >> $GITHUB_STEP_SUMMARY
echo "| \`${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest\` | 17 | ✅ |" >> $GITHUB_STEP_SUMMARY
echo "| \`${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:pg17\` | 17 | ✅ |" >> $GITHUB_STEP_SUMMARY
echo "| \`${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:pg16\` | 16 | ✅ |" >> $GITHUB_STEP_SUMMARY
echo "| \`${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:pg15\` | 15 | ✅ |" >> $GITHUB_STEP_SUMMARY
echo "| \`${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:pg14\` | 14 | ✅ |" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Quick Start" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
echo "docker pull ${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest" >> $GITHUB_STEP_SUMMARY
echo "docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=secret ${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.