Skip to content

fix: update prefix in all env vars #106

fix: update prefix in all env vars

fix: update prefix in all env vars #106

Workflow file for this run

name: Node.js CI
on:
push:
branches: ['ci/add-docker']
jobs:
build:
runs-on: [self-hosted, Linux, X64, marquinhos]
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
deploy:
needs: build
runs-on: [self-hosted, Linux, X64, marquinhos]
steps:
- name: Stop Marquinhos
run: docker compose down
- name: Build and run Marquinhos
run: docker compose up -d --build
- name: Check status
run: |
if docker ps | grep -q marquinhosbot && docker ps | grep marquinhosbot | grep -q Up; then
echo "Marquinhos is running"
else
echo "Marquinhos is not running"
exit 1
fi