Skip to content

Commit f073864

Browse files
author
cdotlock
committed
fix: deploy lunascripts service by id
1 parent bf5f847 commit f073864

3 files changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/deploy-railway.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
deploy:
3030
name: railway up
3131
runs-on: ubuntu-latest
32+
env:
33+
RAILWAY_PROJECT_ID: 64a837fc-1712-492f-b571-e1fec8090cd7
34+
RAILWAY_ENVIRONMENT: production
35+
RAILWAY_SERVICE_ID: b33addae-782a-469a-929e-56c8fd09d70c
3236
steps:
3337
- uses: actions/checkout@v4
3438

@@ -44,8 +48,12 @@ jobs:
4448
run: |
4549
railway --version
4650
railway link \
47-
--project 64a837fc-1712-492f-b571-e1fec8090cd7 \
48-
--environment production \
49-
--service lunascripts
50-
railway up --service lunascripts --ci
51+
--project "$RAILWAY_PROJECT_ID" \
52+
--environment "$RAILWAY_ENVIRONMENT" \
53+
--service "$RAILWAY_SERVICE_ID"
54+
railway up \
55+
--project "$RAILWAY_PROJECT_ID" \
56+
--environment "$RAILWAY_ENVIRONMENT" \
57+
--service "$RAILWAY_SERVICE_ID" \
58+
--ci
5159
shell: bash

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN go mod download || true
77

88
COPY cmd ./cmd
99
COPY internal ./internal
10-
RUN CGO_ENABLED=0 go build -o /out/lscc ./cmd/lscc
10+
RUN CGO_ENABLED=0 go build -o /out/lsc ./cmd/lsc
1111

1212
# ─── Stage 2: Python runtime serving FastAPI ───────────────────────────
1313
FROM python:3.12-slim
@@ -18,7 +18,7 @@ COPY requirements.txt ./
1818
RUN pip install --no-cache-dir -r requirements.txt
1919

2020
COPY api_server.py ./
21-
COPY --from=gobuild /out/lsc /app/bin/lscc
21+
COPY --from=gobuild /out/lsc /app/bin/lsc
2222

2323
ENV PORT=8080
2424
EXPOSE 8080

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Parses `.md` script files into structured JSON for the frontend player, resolvin
77
## Install
88

99
```bash
10-
go build -o bin/lscc ./cmd/lscc
10+
go build -o bin/lsc ./cmd/lsc
1111
```
1212

1313
## Usage

0 commit comments

Comments
 (0)