Skip to content

Commit 1ed4ff5

Browse files
committed
fetch: Git Actions setting
1 parent 92c1f7b commit 1ed4ff5

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

.github/workflows/monacle-nix-build.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build only (nix + next)
1+
name: build only (nix pinned node + next build)
22

33
on:
44
push:
@@ -10,7 +10,6 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13-
1413
env:
1514
NIX_CONFIG: experimental-features = nix-command flakes
1615
NODE_ENV: production
@@ -30,13 +29,13 @@ jobs:
3029
experimental-features = nix-command flakes
3130
accept-flake-config = true
3231
33-
- name: Nix build (same as production ExecStartPre)
32+
- name: Nix build monacle-run (flake evaluation + derivations)
3433
working-directory: infra
3534
run: |
3635
set -euo pipefail
3736
nix build -L .#monacle-run
3837
39-
- name: Use pinned Node from flake
38+
- name: Build pinned node from flake and add to PATH
4039
working-directory: infra
4140
run: |
4241
set -euo pipefail
@@ -45,16 +44,16 @@ jobs:
4544
node -v
4645
npm -v
4746
48-
- name: Check required env for build
47+
- name: Verify required env for Next build
4948
run: |
5049
set -euo pipefail
5150
need() { [ -n "${2:-}" ] || { echo "Missing secret/env: $1" >&2; exit 1; }; }
5251
need NEXT_PUBLIC_BASE_URL "${NEXT_PUBLIC_BASE_URL:-}"
5352
need POCKETBASE_API_URL "${POCKETBASE_API_URL:-}"
5453
need MONAD_CLIENT_ID "${MONAD_CLIENT_ID:-}"
5554
56-
- name: Next build
55+
- name: Next build (using pinned node)
5756
run: |
5857
set -euo pipefail
5958
npm ci
60-
npm run build
59+
npm run build

infra/flake.nix

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@
6464
NPM_CACHE="$CACHE_DIR/npm"
6565
6666
PORT=3000
67-
export MONAD_CLIENT_ID=ouzfym6qfgfpmop
68-
export NEXT_PUBLIC_BASE_URL="https://monacle.snowman0919.site"
69-
export POCKETBASE_ADMIN_EMAIL="cloud-worker01@monad.io.kr"
70-
export POCKETBASE_ADMIN_PASSWORD="m0WBlFC70-c4WFl"
71-
export POCKETBASE_API_URL="https://monadb.snowman0919.site"
7267
export NODE_ENV="production"
7368
export NPM_CONFIG_CACHE="$NPM_CACHE"
7469
export PORT

0 commit comments

Comments
 (0)