fix: update prefix in all env vars #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |