File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments