Skip to content

Merge pull request #8 from hollow-leaf/feat/minaInteract #5

Merge pull request #8 from hollow-leaf/feat/minaInteract

Merge pull request #8 from hollow-leaf/feat/minaInteract #5

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_PASSWORD=${{secrets.COUCHDB_PASSWORD}} >> ./apps/backend/.env
- name: Build
run: pnpm build --filter backend
- name: Build and Deploy Docker
working-directory: ./apps/backend
run: |
chmod +x ./scripts/cicd.sh
./scripts/cicd.sh