Social Annotations in the Atmosphere
1#!/usr/bin/env bash
2# Deploy Seams Proxy to Fly.io using Nix-built Docker image
3# Usage: ./deploy-proxy.sh
4
5set -e
6
7APP_NAME="sure-seams-so"
8
9echo "Building proxy client..."
10pnpm build:proxy
11
12echo "Building Docker image with Nix..."
13PROXY_DIST=$PWD/proxy/dist nix build .#proxy --impure
14
15echo "Loading image into Docker..."
16docker load < result
17
18echo "Tagging image for Fly.io registry..."
19docker tag seams-proxy:latest registry.fly.io/$APP_NAME:latest
20
21echo "Authenticating with Fly.io Docker registry..."
22flyctl auth docker
23
24echo "Pushing image to Fly.io..."
25docker push registry.fly.io/$APP_NAME:latest
26
27echo "Deploying to Fly.io..."
28flyctl deploy --config fly.proxy.toml --image registry.fly.io/$APP_NAME:latest
29
30echo ""
31echo "Deployment complete!"
32echo "Visit: https://sure.seams.so"