Skip to content

Commit babfb4c

Browse files
try this
1 parent 5727415 commit babfb4c

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,33 @@ jobs:
2424

2525
- name: Install Harper CLI
2626
run: npm install -g harperdb
27+
28+
- name: Setup Harper
29+
env:
30+
TC_AGREEMENT: 'yes'
31+
HDB_ADMIN_USERNAME: 'admin'
32+
HDB_ADMIN_PASSWORD: 'password'
33+
ROOTPATH: '/tmp/hdb'
34+
OPERATIONSAPI_NETWORK_PORT: 9925
35+
run: harperdb install
36+
37+
- name: Add prebuilt flag to config
38+
run: yq e '.["@harperdb/nextjs"].prebuilt = true' -i config.yaml
39+
40+
- name: Build project
41+
run: npm run build
2742

2843
- name: Deploy
2944
env:
3045
HDB_TARGET: ${{ secrets.HDB_TARGET }}
3146
HDB_USERNAME: ${{ secrets.HDB_USERNAME }}
3247
HDB_PASSWORD: ${{ secrets.HDB_PASSWORD }}
3348
run: |
34-
REPO_URL="https://github.com/${{ github.repository }}#${{ github.sha }}"
35-
echo "Deploying from: $REPO_URL"
3649
harperdb deploy \
3750
target="$HDB_TARGET" \
3851
username="$HDB_USERNAME" \
3952
password="$HDB_PASSWORD" \
4053
project=nextjs-example \
41-
package="$REPO_URL"
54+
skip_node_modules=false \
55+
restart=true \
56+
replicated=true

0 commit comments

Comments
 (0)