- Update CI.
Some checks failed
GBCI / build (push) Failing after 7s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-09-24 19:14:15 -03:00
parent 444a54b33c
commit cb76bfb8ac

View file

@ -2,45 +2,44 @@ name: GBCI
run: git config --global http.sslVerify false run: git config --global http.sslVerify false
on: on:
push: push:
branches: [ "main" ] branches: ['main']
pull_request: pull_request:
branches: [ "main" ] branches: ['main']
jobs: jobs:
build: build:
runs-on: gbo runs-on: gbo
steps: steps:
- name: Disable SSL verification (temporary)
run: git config --global http.sslVerify false
- name: Disable SSL verification (temporary) - uses: actions/checkout@v4
run: git config --global http.sslVerify false
- uses: actions/checkout@v4 # - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: '20'
# cache: 'npm'
# - name: Setup Node.js - name: Copy files to deployment location
# uses: actions/setup-node@v4 run: |
# with: echo "[General Bots Deployer] Copying files to deploy location..."
# node-version: '20' sudo rm -rf /opt/gbo/bin/bot/botserver/dist
# cache: 'npm' sudo rm /opt/gbo/bin/bot/botserver/package-lock.json
sudo cp -r ./* /opt/gbo/bin/bot/botserver
- name: Copy files to deployment location
run: |
echo "[General Bots Deployer] Copying files to deploy location..."
sudo rm -rf /opt/gbo/bin/bot/botserver/dist
sudo cp -r ./* /opt/gbo/bin/bot/botserver
- name: Building BotServer - name: Building BotServer
run: | run: |
echo "[General Bots Deployer] Building BotServer..." echo "[General Bots Deployer] Building BotServer..."
# rm -rf /opt/gbo/bin/bot/botserver/node_modules
cd /opt/gbo/bin/bot/botserver
sudo npm ci --production
npm run build-server
npm run build-gbui
- name: Restart Bots Deployer rm -rf /opt/gbo/bin/bot/botserver/node_modules
run: | cd /opt/gbo/bin/bot/botserver
echo "[General Bots Deployer] Restarting..." sudo npm i
lxc restart pragmatismo-bot npm run build-server
npm run build-gbui
- name: Restart Bots Deployer
run: |
echo "[General Bots Deployer] Restarting..."
lxc restart pragmatismo-bot