Align Docker install and publish workflow

This commit is contained in:
cyph3rasi
2026-03-07 16:27:50 -08:00
parent ae2c34df6c
commit 180164f7d2
6 changed files with 23 additions and 33 deletions
+18
View File
@@ -0,0 +1,18 @@
.git
.github
.next
.vercel
node_modules
coverage
site-work
*.log
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
+1 -1
View File
@@ -15,7 +15,7 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME: gnosyslabs/synapsis
jobs:
build-and-push:
+1 -1
View File
@@ -45,7 +45,7 @@ services:
# Synapsis Application (from GHCR)
# ============================================
app:
image: ghcr.io/cyph3rasi/synapsis:latest
image: ghcr.io/gnosyslabs/synapsis:latest
container_name: synapsis-app
restart: unless-stopped
environment:
+1 -1
View File
@@ -127,7 +127,7 @@ docker compose exec caddy caddy validate --config /etc/caddy/Caddyfile
### Image pull fails
```bash
# Verify image exists
docker pull ghcr.io/cyph3rasi/synapsis:latest
docker pull ghcr.io/gnosyslabs/synapsis:latest
# Check the published package tags in GitHub Container Registry
```
-2
View File
@@ -8,8 +8,6 @@
#
# All state is stored in Docker volumes - source code is immutable in the image
version: "3.8"
services:
# ============================================
# PostgreSQL Database
+2 -28
View File
@@ -3,35 +3,10 @@
set -eu
REPO="${REPO:-GnosysLabs/Synapsis}"
REF="${REF:-}"
REF="${REF:-main}"
INSTALL_DIR="${1:-${INSTALL_DIR:-/opt/synapsis}}"
REPO_API="https://api.github.com/repos/${REPO}"
PUBLIC_INSTALL_URL="${PUBLIC_INSTALL_URL:-https://synapsis.social/install.sh}"
resolve_ref() {
if [ -n "${REF}" ]; then
REF_SOURCE="custom override"
return
fi
echo "🔎 Resolving latest Synapsis release"
latest_tag=$(
curl -fsSL "${REPO_API}/releases/latest" 2>/dev/null \
| sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' \
| head -n 1
)
if [ -n "${latest_tag}" ]; then
REF="${latest_tag}"
REF_SOURCE="latest GitHub release"
return
fi
REF="main"
REF_SOURCE="main fallback"
echo "⚠️ Could not resolve the latest release, falling back to ${REF}" >&2
}
require_command() {
if ! command -v "$1" >/dev/null 2>&1; then
echo "❌ Required command not found: $1" >&2
@@ -97,14 +72,13 @@ require_command chmod
require_command mkdir
require_command cp
resolve_ref
RAW_BASE="https://raw.githubusercontent.com/${REPO}/${REF}"
echo "========================================"
echo " Synapsis Docker Installer"
echo "========================================"
echo " Repo: ${REPO}"
echo " Ref: ${REF} (${REF_SOURCE})"
echo " Ref: ${REF}"
echo " Install dir: ${INSTALL_DIR}"
echo "========================================"