Skip to content

adjust log level for more info #4

adjust log level for more info

adjust log level for more info #4

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Harper CLI
run: npm install -g harperdb
- name: Setup Harper
env:
TC_AGREEMENT: 'yes'
HDB_ADMIN_USERNAME: 'admin'
HDB_ADMIN_PASSWORD: 'password'
ROOTPATH: '/tmp/hdb'
OPERATIONSAPI_NETWORK_PORT: 9925
LOGGING_LEVEL: 'debug'
run: harperdb install
- name: Add prebuilt flag to config
run: yq e '.["@harperdb/nextjs"].prebuilt = true' -i config.yaml
- name: Build project
run: npm run build
- name: Deploy
env:
HDB_TARGET: ${{ secrets.HDB_TARGET }}
HDB_USERNAME: ${{ secrets.HDB_USERNAME }}
HDB_PASSWORD: ${{ secrets.HDB_PASSWORD }}
run: |
harperdb deploy \
target="$HDB_TARGET" \
username="$HDB_USERNAME" \
password="$HDB_PASSWORD" \
project=nextjs-example \
skip_node_modules=false \
restart=true \
replicated=true