[READ ONLY MIRROR] Spark Social AppView Server github.com/sprksocial/server
atproto deno hono lexicon
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

version sha etc (#22)

authored by

Davi Rodrigues and committed by
GitHub
51651be1 98c18ee0

+12
+3
.github/workflows/build-appview.yaml
··· 59 59 platforms: linux/amd64,linux/arm64 60 60 cache-from: type=gha 61 61 cache-to: type=gha,mode=max 62 + build-args: | 63 + COMMIT_SHA=${{ github.sha }} 62 64 tags: | 63 65 ${{ steps.extract_version.outputs.ghcr_image_name }}:${{ steps.extract_version.outputs.version }} 64 66 ${{ steps.extract_version.outputs.ghcr_image_name }}:latest 67 + ${{ steps.extract_version.outputs.ghcr_image_name }}:${{ github.sha }} 65 68 labels: | 66 69 org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }} 67 70 org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
+3
services/appview/Dockerfile
··· 1 1 FROM denoland/deno:alpine-2.3.5 AS builder 2 + ARG COMMIT_SHA 2 3 3 4 WORKDIR /app 4 5 ··· 7 8 RUN deno cache main.ts 8 9 9 10 FROM denoland/deno:alpine-2.3.5 AS production 11 + ARG COMMIT_SHA 12 + ENV COMMIT_SHA=$COMMIT_SHA 10 13 11 14 ENV NODE_ENV=production 12 15
+6
services/appview/main.ts
··· 100 100 ); 101 101 }); 102 102 103 + // Health endpoint 104 + app.get("/xrpc/_health", (c) => { 105 + const version = Deno.env.get("COMMIT_SHA") ?? "unknown"; 106 + return c.json({ version }); 107 + }); 108 + 103 109 // Error handling 104 110 app.onError((err, c) => { 105 111 if (err instanceof HTTPException) return err.getResponse();