Skip to content

fix: couchdb werid password error #15

fix: couchdb werid password error

fix: couchdb werid password error #15

Workflow file for this run

name: Backend deploy
on:
push:
branches:
- main
- chore/fix-ci
paths:
- '.github/**'
- 'apps/backend/**'
permissions:
contents: read
id-token: write
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Create Env File
run: |
touch ./apps/backend/.env
echo COUCHDB_PASSWORD=${{secrets.COUCHDB_PASSWORD}} >> ./apps/backend/.env
echo COUCHDB_USER=${{secrets.COUCHDB_USER}} >> ./apps/backend/.env
- name: Build
run: pnpm build --filter backend
- name: Build and Deploy Docker
working-directory: ./apps/backend
env:
COUCHDB_USER: ${{secrets.COUCHDB_USER}}
COUCHDB_PASSWORD: ${{secrets.COUCHDB_PASSWORD}}
run: |
chmod +x ./scripts/cicd.sh
./scripts/cicd.sh